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
Abstract
TransactionBatch that 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
ConstructorsConstructorDescriptionTransactionalBatch(jakarta.transaction.Transaction tx, Function<Throwable, E> exceptionTransformer) -
Method Summary
-
Constructor Details
-
TransactionalBatch
-
-
Method Details
-
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
-
discard
public void discard() -
getState
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBatch
-
hashCode
public int hashCode() -
equals
-
toString
-