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)
).-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
preProcessEvent
Called before transactional event listener invocation.- Parameters:
event
- the event that transaction synchronization is about to process
-
postProcessEvent
Called after a transactional event listener invocation.- Parameters:
event
- the event that transaction synchronization finished processingex
- an exception that occurred during listener invocation, if any
-