public class TransactionalBatch<E extends RuntimeException> extends Object implements TransactionBatch
TransactionBatch that associates and exposes the underlying transaction.| Constructor and Description |
|---|
TransactionalBatch(Transaction tx,
Function<Throwable,E> exceptionTransformer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
discard() |
boolean |
equals(Object object) |
org.wildfly.clustering.ee.Batch.State |
getState() |
Transaction |
getTransaction()
Returns the transaction associated with this batch
|
int |
hashCode() |
TransactionBatch |
interpose()
Returns an interposed batch.
|
String |
toString() |
public TransactionalBatch(Transaction tx, Function<Throwable,E> exceptionTransformer)
public Transaction getTransaction()
TransactionBatchgetTransaction in interface TransactionBatchpublic TransactionBatch interpose()
TransactionBatchinterpose in interface TransactionBatchpublic void discard()
discard in interface org.wildfly.clustering.ee.Batchpublic org.wildfly.clustering.ee.Batch.State getState()
getState in interface org.wildfly.clustering.ee.Batchpublic void close()
close in interface AutoCloseableclose in interface org.wildfly.clustering.ee.BatchCopyright © 2019 JBoss by Red Hat. All rights reserved.