Interface AssociationListener

  • 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 interface AssociationListener
    A transaction-to-thread association listener, which may be called when the association with a thread is changed.
    Author:
    David M. Lloyd
    • Method Detail

      • associationChanged

        void associationChanged​(AbstractTransaction transaction,
                                boolean associated)
        The association of the transaction to the thread has changed.
        Parameters:
        transaction - the transaction that was associated or disassociated (not null)
        associated - true if the transaction is now associated with the thread, false if the transaction is no longer associated with the thread