Module org.jooq
Package org.jooq

Interface DiagnosticsListenerProvider

  • All Known Implementing Classes:
    DefaultDiagnosticsListenerProvider
    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 DiagnosticsListenerProvider
    A provider for TransactionListener instances.

    In order to facilitate the lifecycle management of TransactionListener instances that are provided to a jOOQ Configuration, clients can implement this API. To jOOQ, it is thus irrelevant, if transaction listeners are stateful or stateless, local to an execution, or global to an application.

    Author:
    Lukas Eder
    See Also:
    TransactionListener, Configuration
    • Method Detail

      • provide

        @NotNull
        @NotNull DiagnosticsListener provide()
        Provide an DiagnosticsListener instance.

        Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.

        The lifecycle of the DiagnosticsListener is not specified. New instances can be provided any time clients want to reset their diagnostics.

        Returns:
        A DiagnosticsListener instance.
        See Also:
        DiagnosticsListener, DefaultDiagnosticsListenerProvider