TransactionListener

public interface TransactionListener<I>

A common contract for the transaction listeners.

Provides an ability to add callbacks to the transaction execution stages.

Parameters

<I>

ID type of the entity under transaction

Inheritors

Functions

Link copied to clipboard
public abstract void onAfterCommit(EntityRecordChange change)
A callback invoked after a successful commit.
Link copied to clipboard
public abstract void onAfterPhase(Phase<I> phase)
A callback invoked after applying a transaction phase.
Link copied to clipboard
public abstract void onBeforeCommit(EntityRecord entityRecord)
A callback invoked before committing the transaction.
Link copied to clipboard
public abstract void onBeforePhase(Phase<I> phase)
A callback invoked before applying a transaction phase.
Link copied to clipboard
public abstract void onTransactionFailed(Event cause, EntityRecord entityRecord)
A callback invoked if the commit has failed due to a Rejection.
public abstract void onTransactionFailed(Error cause, EntityRecord entityRecord)
A callback invoked if the commit has failed.