public class SteppingQueueDelegate extends AbstractBatchQueueDelegate
AbstractBatchQueueDelegate which accepts a list of
BatchProcessingListener to be invoked when
dispatch(com.mulesoft.mule.runtime.module.batch.engine.transaction.BatchTransactionContext, java.util.Collection)
finishes successfullyjobInstance| Constructor and Description |
|---|
SteppingQueueDelegate(BatchJobInstanceAdapter jobInstance,
org.mule.runtime.core.api.util.queue.QueueManager queueManager,
long queueTimeout,
org.mule.runtime.api.serialization.ObjectSerializer serializer,
org.mule.runtime.core.api.MuleContext muleContext,
List<BatchProcessingListener> listeners) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildQueueName()
Implementors uses this method to construct the name of the underlying queue
|
void |
dispatch(BatchTransactionContext ctx,
Collection<Record> records)
Writes the given records into the queue
|
void |
dispatchAndCommit(BatchTransactionContext ctx,
BatchJobInstanceAdapter jobInstance,
List<Record> records,
BatchContextTransactionManager manager)
Writes the given records into the queue and commits the transaction
|
dispose, getQueueName, iterator, poll, sizepublic SteppingQueueDelegate(BatchJobInstanceAdapter jobInstance, org.mule.runtime.core.api.util.queue.QueueManager queueManager, long queueTimeout, org.mule.runtime.api.serialization.ObjectSerializer serializer, org.mule.runtime.core.api.MuleContext muleContext, List<BatchProcessingListener> listeners)
public void dispatch(BatchTransactionContext ctx, Collection<Record> records) throws org.mule.runtime.api.exception.MuleException
dispatch in interface BatchQueueDelegatedispatch in class AbstractBatchQueueDelegatectx - a BatchTransactionContext which links to the
transaction existing on the queue to be written onrecords - a list of Recordorg.mule.runtime.api.exception.MuleExceptionprotected String buildQueueName()
buildQueueName in class AbstractBatchQueueDelegateStringpublic void dispatchAndCommit(BatchTransactionContext ctx, BatchJobInstanceAdapter jobInstance, List<Record> records, BatchContextTransactionManager manager)
BatchQueueDelegatedispatchAndCommit in interface BatchQueueDelegatedispatchAndCommit in class AbstractBatchQueueDelegatectx - a BatchTransactionContext which links to the transaction existing on the queue to be written onjobInstance - a job instancerecords - a list of Recordmanager - performs logic associated with batch transactionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.