Package | Description |
---|---|
org.springframework.transaction.event |
Spring's support for listening to transaction events.
|
Modifier and Type | Class and Description |
---|---|
class |
TransactionalApplicationListenerAdapter<E extends ApplicationEvent>
TransactionalApplicationListener adapter that delegates the processing of
an event to a target ApplicationListener instance. |
class |
TransactionalApplicationListenerMethodAdapter
GenericApplicationListener adapter that delegates the processing of
an event to a TransactionalEventListener annotated method. |
Modifier and Type | Method and Description |
---|---|
static <T> TransactionalApplicationListener<PayloadApplicationEvent<T>> |
TransactionalApplicationListener.forPayload(Consumer<T> consumer)
Create a new
TransactionalApplicationListener for the given payload consumer,
to be applied in the default phase TransactionPhase.AFTER_COMMIT . |
static <T> TransactionalApplicationListener<PayloadApplicationEvent<T>> |
TransactionalApplicationListener.forPayload(TransactionPhase phase,
Consumer<T> consumer)
Create a new
TransactionalApplicationListener for the given payload consumer. |