Package org.infinispan.batch
Class BatchContainer
java.lang.Object
org.infinispan.batch.BatchContainer
A container for holding thread locals for batching, to be used with the
BatchingCache.startBatch()
and
BatchingCache.endBatch(boolean)
calls.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endBatch
(boolean success) void
endBatch
(boolean autoBatch, boolean success) jakarta.transaction.Transaction
boolean
boolean
Starts a batchboolean
startBatch
(boolean autoBatch)
-
Constructor Details
-
BatchContainer
public BatchContainer()
-
-
Method Details
-
startBatch
Starts a batch- Returns:
- true if a batch was started; false if one was already available.
- Throws:
CacheException
-
startBatch
- Throws:
CacheException
-
endBatch
public void endBatch(boolean success) -
endBatch
public void endBatch(boolean autoBatch, boolean success) -
getBatchTransaction
public jakarta.transaction.Transaction getBatchTransaction() -
isSuspendTxAfterInvocation
public boolean isSuspendTxAfterInvocation()
-