public class BatchContextTransactionRecorder extends Object
| Constructor and Description |
|---|
BatchContextTransactionRecorder(BatchEngine batchEngine) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushAndForget(BatchJobInstanceAdapter jobInstance)
Flushes all the records corresponding to the batch context for the job instance.
|
Integer |
size(BatchJobInstanceAdapter jobInstance)
Returns the size of the not flushed records.
|
void |
tryFlush(BatchTransactionContext ctx,
List<Record> records)
Attempts to flush records and update statistics.
|
public BatchContextTransactionRecorder(BatchEngine batchEngine)
public void tryFlush(BatchTransactionContext ctx, List<Record> records) throws org.mule.runtime.api.exception.MuleException
ctx - batch transaction contextrecords - records aggregated.org.mule.runtime.api.exception.MuleException - an exception in the flush process.public Integer size(BatchJobInstanceAdapter jobInstance)
jobInstance - job instancepublic void flushAndForget(BatchJobInstanceAdapter jobInstance) throws org.mule.runtime.api.exception.MuleException
jobInstance - job instanceorg.mule.runtime.api.exception.MuleException - an exception during the flusing process.Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.