public class FixedAggregatorRecordBuffer extends AggregatorRecordBuffer
AggregatorRecordBuffer for non streaming DefaultBatchStepAggregator. This buffer works with
in memory Record blocks of a fixed sizebatchEngine, exceptionReporter, muleContext, notificationDispatcher, step| Constructor and Description |
|---|
FixedAggregatorRecordBuffer(int blockSize,
boolean preserveMimeTypes,
BatchEngine batchEngine,
BatchStepAdapter step,
org.mule.runtime.core.api.processor.Processor chain,
org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.notification.NotificationDispatcher notificationDispatcher,
org.mule.runtime.core.api.MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.runtime.core.api.event.CoreEvent |
configureChainEvent(org.mule.runtime.core.api.event.CoreEvent event,
BatchJobInstanceAdapter jobInstance,
com.google.common.collect.Multimap<BatchTransactionContext,Record> records)
Configures the
event (set payload, properties, etc) to is going to be used when flushing the aggregated records
through the AggregatorRecordBuffer.chain |
void |
forget(BatchJobInstanceAdapter jobInstance)
For this implementation, to forget means to flush whatever records are currently buffered.
|
protected BatchProcessingTemplate |
makeProcessingTemplate(com.google.common.collect.Multimap<BatchTransactionContext,Record> contexts,
org.mule.runtime.core.api.processor.Processor processor,
org.mule.runtime.core.api.MuleContext muleContext)
Returns the
BatchProcessingTemplate through which AggregatorRecordBuffer.chain will be executed |
doFlush, getLocation, markError, setExceptionReporteradd, flush, flushAndForget, getHolderLock, sizeadd, getNamepublic FixedAggregatorRecordBuffer(int blockSize,
boolean preserveMimeTypes,
BatchEngine batchEngine,
BatchStepAdapter step,
org.mule.runtime.core.api.processor.Processor chain,
org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.notification.NotificationDispatcher notificationDispatcher,
org.mule.runtime.core.api.MuleContext muleContext)
public void forget(BatchJobInstanceAdapter jobInstance)
forget in interface RecordBufferforget in class InMemoryRecordBufferjobInstance - the BatchJobInstanceAdapter owning the recordsprotected org.mule.runtime.core.api.event.CoreEvent configureChainEvent(org.mule.runtime.core.api.event.CoreEvent event,
BatchJobInstanceAdapter jobInstance,
com.google.common.collect.Multimap<BatchTransactionContext,Record> records)
AggregatorRecordBufferevent (set payload, properties, etc) to is going to be used when flushing the aggregated records
through the AggregatorRecordBuffer.chainconfigureChainEvent in class AggregatorRecordBufferevent - a CoreEventjobInstance - the BatchJobInstanceAdapter being executedrecords - the aggregated RecordsCoreEvent or null, which means that the chain should be skipped for this eventprotected BatchProcessingTemplate makeProcessingTemplate(com.google.common.collect.Multimap<BatchTransactionContext,Record> contexts, org.mule.runtime.core.api.processor.Processor processor, org.mule.runtime.core.api.MuleContext muleContext)
AggregatorRecordBufferBatchProcessingTemplate through which AggregatorRecordBuffer.chain will be executedmakeProcessingTemplate in class AggregatorRecordBuffercontexts - the aggregated Recordsprocessor - the Processor to be executedmuleContext - the current MuleContextCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.