public interface BatchStepAggregator
| Modifier and Type | Method and Description |
|---|---|
int |
add(Record record,
BatchTransactionContext ctx)
Adds a new record
|
void |
flush(BatchJobInstanceAdapter jobInstance)
Flushes the buffered
Records for the given
BatchJobInstanceAdapter. |
Integer |
getSize() |
boolean |
isStreaming() |
void |
releaseResources(BatchJobInstanceAdapter jobInstance)
Use this method when processing for the given
BatchJobInstanceAdapter should stop and thus any allocated resources
related to it should be freed. |
void |
setExceptionReporter(StepExceptionReporter exceptionReporter)
Allows to customize how the exceptions are reported
|
long |
size(BatchJobInstanceAdapter jobInstance) |
void flush(BatchJobInstanceAdapter jobInstance)
Records for the given
BatchJobInstanceAdapter.
Use this method when you want to flush the info but you still expect more records from the same job instance to come. In this
way, you flush the records but you avoid constantly recreating the internal tracking information.jobInstance - job to be flushed.void releaseResources(BatchJobInstanceAdapter jobInstance)
BatchJobInstanceAdapter should stop and thus any allocated resources
related to it should be freed.jobInstance - a BatchJobInstanceAdapterint add(Record record, BatchTransactionContext ctx)
record - record to add.ctx - the tx context that is being used for this work run.long size(BatchJobInstanceAdapter jobInstance)
jobInstance - job for which the size is consultedboolean isStreaming()
false otherwiseInteger getSize()
void setExceptionReporter(StepExceptionReporter exceptionReporter)
exceptionReporter - exception reporter to configure on the aggregatorCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.