Uses of Enum Class
org.springframework.transaction.event.TransactionPhase
Packages that use TransactionPhase
Package
Description
Spring's support for listening to transaction events.
-
Uses of TransactionPhase in org.springframework.transaction.event
Subclasses with type arguments of type TransactionPhase in org.springframework.transaction.eventModifier and TypeClassDescriptionenumThe phase in which a transactional event listener applies.Methods in org.springframework.transaction.event that return TransactionPhaseModifier and TypeMethodDescriptiondefault TransactionPhaseTransactionalApplicationListener.getTransactionPhase()Return theTransactionPhasein which the listener will be invoked.TransactionalApplicationListenerAdapter.getTransactionPhase()Return the transaction phase to invoke the listener in.TransactionalApplicationListenerMethodAdapter.getTransactionPhase()static TransactionPhaseReturns the enum constant of this class with the specified name.static TransactionPhase[]TransactionPhase.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.springframework.transaction.event with parameters of type TransactionPhaseModifier and TypeMethodDescriptionstatic <T> TransactionalApplicationListener<PayloadApplicationEvent<T>> TransactionalApplicationListener.forPayload(TransactionPhase phase, Consumer<T> consumer) Create a newTransactionalApplicationListenerfor the given payload consumer.voidTransactionalApplicationListenerAdapter.setTransactionPhase(TransactionPhase transactionPhase) Specify the transaction phase to invoke the listener in.