Class DefaultTransactionalBatch
java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.AbstractContextualBatch
org.wildfly.clustering.cache.infinispan.batch.DefaultTransactionalBatch
- All Implemented Interfaces:
jakarta.transaction.Synchronization,AutoCloseable,Supplier<ContextualBatch>,Batch,SuspendedBatch,Contextual,ContextualBatch,ContextualSuspendedBatch,Transactional,TransactionalSuspendedBatch,Supplier<ContextualBatch>
public class DefaultTransactionalBatch
extends AbstractContextualBatch
implements TransactionalSuspendedBatch, jakarta.transaction.Synchronization
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.cache.batch.Batch
Batch.Status -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) voidvoiddiscard()Discards this batch.booleanjakarta.transaction.TransactionReturns the associated transaction.jakarta.transaction.TransactionManagerReturns the associated transaction manager.inthashCode()org.wildfly.clustering.cache.infinispan.batch.TransactionalBatchresume()Resumes this batch.suspend()Suspends this batch.toString()Methods inherited from class org.wildfly.clustering.cache.infinispan.batch.AbstractContextualBatch
attach, close, get, getNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.batch.Batch
close, suspendWithContextMethods inherited from interface org.wildfly.clustering.cache.infinispan.batch.Contextual
attach, getNameMethods inherited from interface org.wildfly.clustering.cache.batch.SuspendedBatch
resumeWithContext
-
Method Details
-
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()Description copied from interface:TransactionalReturns the associated transaction manager.- Specified by:
getTransactionManagerin interfaceTransactional- Returns:
- the associated transaction manager.
-
getTransaction
public jakarta.transaction.Transaction getTransaction()Description copied from interface:TransactionalReturns the associated transaction.- Specified by:
getTransactionin interfaceTransactional- Returns:
- the associated transaction
-
getStatus
-
suspend
Description copied from interface:BatchSuspends this batch.- Specified by:
suspendin interfaceBatch- Specified by:
suspendin interfaceContextualBatch- Returns:
- a suspended batch
-
resume
public org.wildfly.clustering.cache.infinispan.batch.TransactionalBatch resume()Description copied from interface:SuspendedBatchResumes this batch.- Specified by:
resumein interfaceContextualSuspendedBatch- Specified by:
resumein interfaceSuspendedBatch- Specified by:
resumein interfaceTransactionalSuspendedBatch- Returns:
- the resumed batch.
-
discard
public void discard()Description copied from interface:BatchDiscards this batch. A discarded batch must still be closed. -
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletionin interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletionin interfacejakarta.transaction.Synchronization
-
hashCode
public int hashCode() -
equals
-
toString
-