public interface BatchQueueManager extends BatchProcessingListenersOwner
BatchQueueDelegate
abstraction is used to separate behavior from the actual queue being used. This manager acts as a facilitator to access the
corresponding delegates| Modifier and Type | Method and Description |
|---|---|
long |
brokersSize() |
void |
disposeBroker(BatchJobInstanceAdapter jobInstance)
Disposes just the broker for the queues.
|
void |
disposeQueues(BatchTransactionContext ctx)
Disposes all initialized queues associated to the given
BatchJobInstanceAdapter |
org.mule.runtime.core.api.util.queue.QueueSession |
newQueueSession() |
BatchQueueDelegate |
steppingQueue(BatchJobInstanceAdapter jobInstance)
|
BatchQueueDelegate |
streamingAggregatorInputQueue(BatchJobInstanceAdapter jobInstance,
BatchStepAdapter step)
Returns a
BatchQueueDelegate to access the input queue of a streaming BatchStepAggregator |
BatchQueueDelegate |
streamingAggregatorOutputQueue(BatchJobInstanceAdapter jobInstance,
BatchStepAdapter step)
Returns a
BatchQueueDelegate to access the output queue of a streaming BatchStepAggregator |
addBatchProcessingListener, addBatchProcessingListener, removeBatchProcessingListener, removeBatchProcessingListenerBatchQueueDelegate steppingQueue(BatchJobInstanceAdapter jobInstance)
jobInstance - the BatchJobInstanceAdapter which records we want to stepBatchQueueDelegateBatchQueueDelegate streamingAggregatorInputQueue(BatchJobInstanceAdapter jobInstance, BatchStepAdapter step)
BatchQueueDelegate to access the input queue of a streaming BatchStepAggregatorjobInstance - the BatchJobInstanceAdapter which records we want to streamstep - the BatchStepAdapter owning the aggregator blockBatchQueueDelegateBatchQueueDelegate streamingAggregatorOutputQueue(BatchJobInstanceAdapter jobInstance, BatchStepAdapter step)
BatchQueueDelegate to access the output queue of a streaming BatchStepAggregatorjobInstance - the BatchJobInstanceAdapter which records we want to streamstep - the BatchStepAdapter owning the aggregator blockBatchQueueDelegateorg.mule.runtime.core.api.util.queue.QueueSession newQueueSession()
void disposeQueues(BatchTransactionContext ctx)
BatchJobInstanceAdapterctx - a not null BatchTransactionContextvoid disposeBroker(BatchJobInstanceAdapter jobInstance)
This is just to be used when a dispose is needed before any queues were created.
jobInstance - the instance to dispose the broker for.long brokersSize()
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.