public static interface TransactionalApplicationListener.SynchronizationCallback
TransactionalApplicationListener.processEvent(E)
).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.
|
default void preProcessEvent(ApplicationEvent event)
event
- the event that transaction synchronization is about to processdefault void postProcessEvent(ApplicationEvent event, @Nullable Throwable ex)
event
- the event that transaction synchronization finished processingex
- an exception that occurred during listener invocation, if any