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

    LOGGER

    Fields inherited from interface org.wildfly.clustering.function.Supplier

    NULL
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterCompletion(int status)
     
    void
     
    void
     
    boolean
    equals(Object object)
     
    org.wildfly.clustering.cache.batch.Batch.Status
     
    jakarta.transaction.Transaction
    Returns the associated transaction.
    jakarta.transaction.TransactionManager
    Returns the associated transaction manager.
    int
     
    org.wildfly.clustering.cache.infinispan.batch.TransactionalBatch
     
     
     

    Methods inherited from class AbstractContextualBatch

    attach, close, get, getName

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.wildfly.clustering.cache.batch.Batch

    close, suspendWithContext

    Methods inherited from interface Contextual

    attach, getName

    Methods inherited from interface Supplier

    get

    Methods inherited from interface org.wildfly.clustering.function.Supplier

    handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTest

    Methods inherited from interface org.wildfly.clustering.cache.batch.SuspendedBatch

    resumeWithContext
  • 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 org.wildfly.clustering.cache.batch.Batch.Status getStatus()
      Specified by:
      getStatus in interface org.wildfly.clustering.cache.batch.Batch
    • suspend

      public TransactionalSuspendedBatch suspend()
      Specified by:
      suspend in interface org.wildfly.clustering.cache.batch.Batch
      Specified by:
      suspend in interface ContextualBatch
    • resume

      public org.wildfly.clustering.cache.infinispan.batch.TransactionalBatch resume()
      Specified by:
      resume in interface ContextualSuspendedBatch
      Specified by:
      resume in interface org.wildfly.clustering.cache.batch.SuspendedBatch
      Specified by:
      resume in interface TransactionalSuspendedBatch
    • discard

      public void discard()
      Specified by:
      discard in interface org.wildfly.clustering.cache.batch.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