public abstract class BatchUtils extends Object
| Constructor and Description |
|---|
BatchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildExceptionLogMessage(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance jobInstance,
BatchStep step,
Exception exception) |
static void |
commit(BatchTransactionContext ctx) |
static void |
completeWorkOnBlock(List<Record> block,
boolean shouldRollback,
BatchProcessingListener listener,
BatchTransactionContext ctx)
Perform the completion callback for each record in the block as well as any further completion operation needed related to
the transaction context.
|
static Record |
getRecord(org.mule.runtime.api.el.BindingContext bindingContext) |
static Record |
getRecord(org.mule.runtime.core.api.event.CoreEvent event) |
static void |
rollback(BatchTransactionContext ctx) |
static void |
singleAckAndCommitIfNecessary(BatchTransactionContext ctx) |
static BatchException |
toBatchException(Exception e,
BatchJobInstanceAdapter jobInstance) |
static Record |
toRecord(org.mule.runtime.core.api.event.CoreEvent event,
Object object) |
public static Record getRecord(org.mule.runtime.core.api.event.CoreEvent event)
public static Record getRecord(org.mule.runtime.api.el.BindingContext bindingContext)
public static BatchException toBatchException(Exception e, BatchJobInstanceAdapter jobInstance)
public static Record toRecord(org.mule.runtime.core.api.event.CoreEvent event, Object object)
public static String buildExceptionLogMessage(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance jobInstance, BatchStep step, Exception exception)
public static void commit(BatchTransactionContext ctx)
public static void singleAckAndCommitIfNecessary(BatchTransactionContext ctx)
public static void rollback(BatchTransactionContext ctx)
public static void completeWorkOnBlock(List<Record> block, boolean shouldRollback, BatchProcessingListener listener, BatchTransactionContext ctx)
block - the block of recordsshouldRollback - in case the context should be rollbacklistener - processing batch listenerctx - the transactional contextCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.