org.springframework.transaction.event

## 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:
    `TransactionalApplicationListener.addCallback(org.springframework.transaction.event.TransactionalApplicationListener.SynchronizationCallback)`, `TransactionalApplicationListener.processEvent(E)`

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `postProcessEvent(ApplicationEvent event, Throwable ex)` Called after a transactional event listener invocation.
    `default void` | `preProcessEvent(ApplicationEvent event)` Called before transactional event listener invocation.

- - ### Method Detail

    - #### 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