Interface SynchronizationRegistryImplementor

All Superinterfaces:
Serializable, SynchronizationRegistry

public interface SynchronizationRegistryImplementor extends SynchronizationRegistry
SPI contract for SynchronizationRegistry implementors.
  • Method Details

    • notifySynchronizationsBeforeTransactionCompletion

      void notifySynchronizationsBeforeTransactionCompletion()
      Delegates the Synchronization.beforeCompletion() call to each registered Synchronization.
    • notifySynchronizationsAfterTransactionCompletion

      void notifySynchronizationsAfterTransactionCompletion(int status)
      Delegates the Synchronization.afterCompletion(int) call to each registered Synchronization and clears the registered Synchronizations after all have been notified.
      Parameters:
      status - The transaction status, per Status constants
    • clearSynchronizations

      void clearSynchronizations()
      Clears all synchronizations from this registry. The synchronizations are automatically cleared during after-completion handling; see notifySynchronizationsAfterTransactionCompletion(int)