Interface TransactionManager.TransactionClosedListener

Enclosing interface:
TransactionManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TransactionManager.TransactionClosedListener
A handler that can be called per entity during commit or rollback operations. It will we passed to the callback of the TransactionManager.close(Transaction, Consumer) operation. Transactions may choose to call this or not depending on what actually did cause the closing of a transaction.
  • Method Details

    • onTransactionClosed

      void onTransactionClosed(Transaction.Status newsStatus, List<Object> entitiesRegistered)
      Indicate a commit event per entity
      Parameters:
      newsStatus - the new status
      entitiesRegistered - A list of entities registered in the transaction being closed. A handler might choose to clean up their state.