public interface BatchTransactionContextProvider
BatchTransactionContext for a given
BatchJobInstanceAdapter. This is different from
BatchTransactionContextFactory because it doesn't necessarily
return a new instance each time.
This is very useful for cases in which many threads are concurrently contributing to the same transaction or when a same
component such as a RecordBuffer is processing many
BatchJobInstanceAdapter concurrently. Because this requires tracking
information on the contexts associated to a job instance, the returned contexts should be monitored so that tracking
information is released upon commit or rollback
Implementation are required to be thread safe| Modifier and Type | Method and Description |
|---|---|
BatchTransactionContext |
get(BatchJobInstanceAdapter jobInstance)
Returns a
BatchTransactionContext for the given
BatchJobInstanceAdapter |
BatchTransactionContext get(BatchJobInstanceAdapter jobInstance)
BatchTransactionContext for the given
BatchJobInstanceAdapterjobInstance - a not null BatchJobInstanceAdapterBatchTransactionContextCopyright © 2006–2019 MuleSoft, Inc.. All rights reserved.