Interface SynchronizationRegistryImplementor

All Superinterfaces:
Serializable, SynchronizationRegistry
All Known Implementing Classes:
SynchronizationRegistryStandardImpl

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. Will also clear 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. Note that synchronizations are automatically cleared during after-completion handling; see notifySynchronizationsAfterTransactionCompletion(int)