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
  • Method Details

    • getTransactionManager

      public jakarta.transaction.TransactionManager getTransactionManager()
      Description copied from interface: Transactional
      Returns the associated transaction manager.
      Specified by:
      getTransactionManager in interface Transactional
      Returns:
      the associated transaction manager.
    • getTransaction

      public jakarta.transaction.Transaction getTransaction()
      Description copied from interface: Transactional
      Returns the associated transaction.
      Specified by:
      getTransaction in interface Transactional
      Returns:
      the associated transaction
    • getStatus

      public Batch.Status getStatus()
      Description copied from interface: Batch
      Returns the status of this batch.
      Specified by:
      getStatus in interface Batch
      Returns:
      the status of this batch.
    • suspend

      public TransactionalSuspendedBatch suspend()
      Description copied from interface: Batch
      Suspends this batch.
      Specified by:
      suspend in interface Batch
      Specified by:
      suspend in interface ContextualBatch
      Returns:
      a suspended batch
    • resume

      public org.wildfly.clustering.cache.infinispan.batch.TransactionalBatch resume()
      Description copied from interface: SuspendedBatch
      Resumes this batch.
      Specified by:
      resume in interface ContextualSuspendedBatch
      Specified by:
      resume in interface SuspendedBatch
      Specified by:
      resume in interface TransactionalSuspendedBatch
      Returns:
      the resumed batch.
    • discard

      public void discard()
      Description copied from interface: Batch
      Discards this batch. A discarded batch must still be closed.
      Specified by:
      discard in interface Batch
    • beforeCompletion

      public void beforeCompletion()
      Specified by:
      beforeCompletion in interface jakarta.transaction.Synchronization
    • afterCompletion

      public void afterCompletion(int status)
      Specified by:
      afterCompletion in interface jakarta.transaction.Synchronization
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object