Class ThreadLocalTransactionBatch<E extends RuntimeException>
java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.ThreadLocalTransactionBatch<E>
- Type Parameters:
E- the exception wrapper type for transaction-related exceptions
- All Implemented Interfaces:
AutoCloseable,Batch,SuspendedBatch,TransactionBatch
public class ThreadLocalTransactionBatch<E extends RuntimeException>
extends Object
implements TransactionBatch
TransactionBatch that associates and exposes the underlying transaction.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.cache.infinispan.batch.TransactionBatch
TransactionBatch.Factory -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.batch.Batch
suspendWithContext
-
Method Details
-
isActive
-
isDiscarding
public boolean isDiscarding()- Specified by:
isDiscardingin interfaceBatch
-
isClosed
-
suspend
-
resume
- Specified by:
resumein interfaceSuspendedBatch
-
resumeWithContext
- Specified by:
resumeWithContextin interfaceSuspendedBatch
-
getTransaction
public jakarta.transaction.Transaction getTransaction()Description copied from interface:TransactionBatchReturns the transaction associated with this batch- Specified by:
getTransactionin interfaceTransactionBatch- Returns:
- a transaction
-
interpose
Description copied from interface:TransactionBatchReturns an interposed batch.- Specified by:
interposein interfaceTransactionBatch- Returns:
- an interposed batch.
-
discard
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBatch
-
hashCode
-
equals
-
toString
-