Class SynchronizationAdapter

java.lang.Object
org.infinispan.transaction.impl.AbstractEnlistmentAdapter
org.infinispan.transaction.synchronization.SynchronizationAdapter
All Implemented Interfaces:
javax.transaction.Synchronization, AsyncSynchronization

public class SynchronizationAdapter extends AbstractEnlistmentAdapter implements javax.transaction.Synchronization, AsyncSynchronization
Synchronization implementation for integrating with the TM. See ISPN-888 for more information on this.
Since:
5.0
Author:
Mircea.Markus@jboss.com
  • Constructor Details

  • Method Details

    • beforeCompletion

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

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • asyncBeforeCompletion

      public CompletionStage<Void> asyncBeforeCompletion()
      Specified by:
      asyncBeforeCompletion in interface AsyncSynchronization
      Returns:
      A CompletionStage which is completed with the result of Synchronization.beforeCompletion().
      See Also:
      • Synchronization.beforeCompletion()
    • asyncAfterCompletion

      public CompletionStage<Void> asyncAfterCompletion(int status)
      Specified by:
      asyncAfterCompletion in interface AsyncSynchronization
      Returns:
      A CompletionStage which is completed with the result of Synchronization.afterCompletion(int).
      See Also:
      • Synchronization.afterCompletion(int)