Interface TransactionalApplicationListener.SynchronizationCallback

Enclosing interface:
TransactionalApplicationListener<E extends ApplicationEvent>

public static interface TransactionalApplicationListener.SynchronizationCallback
Callback to be invoked on synchronization-driven event processing, wrapping the target listener invocation (TransactionalApplicationListener.processEvent(E)).
See Also:
  • Method Details

    • preProcessEvent

      default void preProcessEvent(ApplicationEvent event)
      Called before transactional event listener invocation.
      Parameters:
      event - the event that transaction synchronization is about to process
    • postProcessEvent

      default void postProcessEvent(ApplicationEvent event, @Nullable Throwable ex)
      Called after a transactional event listener invocation.
      Parameters:
      event - the event that transaction synchronization finished processing
      ex - an exception that occurred during listener invocation, if any