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
A transactional batch.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface Batch
Batch.Status -
Field Summary
Fields inherited from interface ContextualBatch
LOGGER -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) voidvoiddiscard()Discards this batch.booleanReturns the status of this batch.jakarta.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 AbstractContextualBatch
attach, close, get, getNameMethods inherited from interface Batch
close, suspendWithContextMethods inherited from interface Contextual
attach, getNameMethods inherited from interface Supplier
handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTestMethods inherited from interface 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
Description copied from interface:BatchReturns the status of this batch. -
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
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletionin interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletionin interfacejakarta.transaction.Synchronization
-
hashCode
-
equals
-
toString
-