@FunctionalInterface public interface DiagnosticsListenerProvider
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.
TransactionListener
,
Configuration
Modifier and Type | Method and Description |
---|---|
DiagnosticsListener |
provide()
Provide an
DiagnosticsListener instance. |
DiagnosticsListener provide()
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.
DiagnosticsListener
instance.DiagnosticsListener
,
DefaultDiagnosticsListenerProvider
Copyright © 2019. All rights reserved.