- All Known Implementing Classes:
CallbackTransactionListener
,DefaultTransactionListener
public interface TransactionListener
The
TransactionListener
SPI is used to intercept the
TransactionProvider
's transaction events.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginEnd(TransactionContext ctx)
Called afterTransactionProvider.begin(TransactionContext)
.void
beginStart(TransactionContext ctx)
Called beforeTransactionProvider.begin(TransactionContext)
.void
commitEnd(TransactionContext ctx)
Called afterTransactionProvider.commit(TransactionContext)
.void
Called beforeTransactionProvider.commit(TransactionContext)
.static CallbackTransactionListener
onBeginEnd(Consumer<? super TransactionContext> onBeginEnd)
Create aTransactionListener
with aonBeginEnd(Consumer)
implementation.static CallbackTransactionListener
onBeginStart(Consumer<? super TransactionContext> onBeginStart)
Create aTransactionListener
with aonBeginStart(Consumer)
implementation.static CallbackTransactionListener
onCommitEnd(Consumer<? super TransactionContext> onCommitEnd)
Create aTransactionListener
with aonCommitEnd(Consumer)
implementation.static CallbackTransactionListener
onCommitStart(Consumer<? super TransactionContext> onCommitStart)
Create aTransactionListener
with aonCommitStart(Consumer)
implementation.static CallbackTransactionListener
onRollbackEnd(Consumer<? super TransactionContext> onRollbackEnd)
Create aTransactionListener
with aonRollbackEnd(Consumer)
implementation.static CallbackTransactionListener
onRollbackStart(Consumer<? super TransactionContext> onRollbackStart)
Create aTransactionListener
with aonRollbackStart(Consumer)
implementation.void
Called afterTransactionProvider.rollback(TransactionContext)
.void
Called beforeTransactionProvider.rollback(TransactionContext)
.
-
Method Details
-
beginStart
Called beforeTransactionProvider.begin(TransactionContext)
. -
beginEnd
Called afterTransactionProvider.begin(TransactionContext)
. -
commitStart
Called beforeTransactionProvider.commit(TransactionContext)
. -
commitEnd
Called afterTransactionProvider.commit(TransactionContext)
. -
rollbackStart
Called beforeTransactionProvider.rollback(TransactionContext)
. -
rollbackEnd
Called afterTransactionProvider.rollback(TransactionContext)
. -
onBeginStart
Create aTransactionListener
with aonBeginStart(Consumer)
implementation. -
onBeginEnd
Create aTransactionListener
with aonBeginEnd(Consumer)
implementation. -
onCommitStart
static CallbackTransactionListener onCommitStart(Consumer<? super TransactionContext> onCommitStart)Create aTransactionListener
with aonCommitStart(Consumer)
implementation. -
onCommitEnd
Create aTransactionListener
with aonCommitEnd(Consumer)
implementation. -
onRollbackStart
static CallbackTransactionListener onRollbackStart(Consumer<? super TransactionContext> onRollbackStart)Create aTransactionListener
with aonRollbackStart(Consumer)
implementation. -
onRollbackEnd
static CallbackTransactionListener onRollbackEnd(Consumer<? super TransactionContext> onRollbackEnd)Create aTransactionListener
with aonRollbackEnd(Consumer)
implementation.
-