Class TransactionalBatch<E extends RuntimeException>
- java.lang.Object
-
- org.wildfly.clustering.ee.cache.tx.TransactionalBatch<E>
-
- All Implemented Interfaces:
AutoCloseable,Batch,TransactionBatch
public class TransactionalBatch<E extends RuntimeException> extends Object implements TransactionBatch
AbstractTransactionBatchthat associates and exposes the underlying transaction.- Author:
- Paul Ferraro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.clustering.ee.Batch
Batch.State
-
-
Constructor Summary
Constructors Constructor Description TransactionalBatch(javax.transaction.Transaction tx, Function<Throwable,E> exceptionTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddiscard()booleanequals(Object object)Batch.StategetState()javax.transaction.TransactiongetTransaction()Returns the transaction associated with this batchinthashCode()TransactionBatchinterpose()Returns an interposed batch.StringtoString()
-
-
-
Method Detail
-
getTransaction
public javax.transaction.Transaction getTransaction()
Description copied from interface:TransactionBatchReturns the transaction associated with this batch- Specified by:
getTransactionin interfaceTransactionBatch- Returns:
- a transaction
-
interpose
public TransactionBatch interpose()
Description copied from interface:TransactionBatchReturns an interposed batch.- Specified by:
interposein interfaceTransactionBatch
-
getState
public Batch.State getState()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBatch
-
-