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>, org.wildfly.clustering.cache.batch.Batch, org.wildfly.clustering.cache.batch.SuspendedBatch, Contextual, ContextualBatch, ContextualSuspendedBatch, Transactional, TransactionalSuspendedBatch, org.wildfly.clustering.function.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 org.wildfly.clustering.cache.batch.Batch
org.wildfly.clustering.cache.batch.Batch.Status -
Field Summary
Fields inherited from interface ContextualBatch
LOGGERFields inherited from interface org.wildfly.clustering.function.Supplier
NULL -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) voidvoiddiscard()booleanorg.wildfly.clustering.cache.batch.Batch.Statusjakarta.transaction.TransactionReturns the associated transaction.jakarta.transaction.TransactionManagerReturns the associated transaction manager.inthashCode()org.wildfly.clustering.cache.infinispan.batch.TransactionalBatchresume()suspend()toString()Methods inherited from class AbstractContextualBatch
attach, close, get, getNameMethods inherited from interface org.wildfly.clustering.cache.batch.Batch
close, suspendWithContextMethods inherited from interface Contextual
attach, getNameMethods inherited from interface org.wildfly.clustering.function.Supplier
handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTestMethods 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
public org.wildfly.clustering.cache.batch.Batch.Status getStatus()- Specified by:
getStatusin interfaceorg.wildfly.clustering.cache.batch.Batch
-
suspend
- Specified by:
suspendin interfaceorg.wildfly.clustering.cache.batch.Batch- Specified by:
suspendin interfaceContextualBatch
-
resume
public org.wildfly.clustering.cache.infinispan.batch.TransactionalBatch resume()- Specified by:
resumein interfaceContextualSuspendedBatch- Specified by:
resumein interfaceorg.wildfly.clustering.cache.batch.SuspendedBatch- Specified by:
resumein interfaceTransactionalSuspendedBatch
-
discard
public void discard()- Specified by:
discardin interfaceorg.wildfly.clustering.cache.batch.Batch
-
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
-