-
- All Known Implementing Classes:
DefaultExecuteListenerProvider
- 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 ExecuteListenerProvider
A provider forExecuteListener
instances.In order to facilitate the lifecycle management of
ExecuteListener
instances that are provided to a jOOQConfiguration
, clients can implement this API. To jOOQ, it is thus irrelevant, if execute listeners are stateful or stateless, local to an execution, or global to an application.- Author:
- Lukas Eder
- See Also:
ExecuteListener
,Configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ExecuteListener
provide()
Provide anExecuteListener
instance.
-
-
-
Method Detail
-
provide
@NotNull @NotNull ExecuteListener provide()
Provide anExecuteListener
instance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An
ExecuteListener
shall be provided exactly once per query execution lifecycle, i.e. perExecuteContext
.- Returns:
- An
ExecuteListener
instance. - See Also:
ExecuteListener
,ExecuteContext
,DefaultExecuteListenerProvider
-
-