spring-framework / org.springframework.transaction.event

Package org.springframework.transaction.event

Types

TransactionPhase

class TransactionPhase

The phase at which a transactional event listener applies.

Annotations

TransactionalEventListener

class TransactionalEventListener

An EventListener that is invoked according to a TransactionPhase.

If the event is not published within the boundaries of a managed transaction, the event is discarded unless the #fallbackExecution flag is explicitly set. If a transaction is running, the event is processed according to its TransactionPhase.

Adding org.springframework.core.annotation.Order to your annotated method allows you to prioritize that listener amongst other listeners running before or after transaction completion.