Interface ITransactionListener

All Superinterfaces:
IEventListener, Serializable
All Known Implementing Classes:
TxEventListener

public interface ITransactionListener extends IEventListener
Interface for listeners that wish to be notified of transaction events.
Since:
5.0
Author:
O. Kerpershoek
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The mask of the event that is supported by this listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is invoked on the listener just before the transaction is committed.
    void
    This method is invoked on the listener just before a roll-back of a transaction takes place.
    void
    This method is invoked on the listener just before a transaction is started.

    Methods inherited from interface com.aquima.interactions.foundation.events.IEventListener

    getType
  • Field Details

    • TYPE

      static final int TYPE
      The mask of the event that is supported by this listener.
      See Also:
  • Method Details

    • onStartTransaction

      void onStartTransaction(ITransactionEvent transactionEvent)
      This method is invoked on the listener just before a transaction is started.
      Parameters:
      transactionEvent - Event containing information about the transaction.
    • onCommitTransaction

      void onCommitTransaction(ITransactionEvent transactionEvent)
      This method is invoked on the listener just before the transaction is committed.
      Parameters:
      transactionEvent - Event containing information about the transaction.
    • onRollbackTransaction

      void onRollbackTransaction(ITransactionEvent transactionEvent)
      This method is invoked on the listener just before a roll-back of a transaction takes place.
      Parameters:
      transactionEvent - Event containing information about the transaction.