Package org.jooq
Interface TransactionListenerProvider
- 
- All Known Implementing Classes:
 DefaultTransactionListenerProvider
- 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 TransactionListenerProviderA provider forTransactionListenerinstances.In order to facilitate the lifecycle management of
TransactionListenerinstances that are provided to a jOOQConfiguration, 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionListenerprovide()Provide anTransactionListenerinstance. 
 - 
 
- 
- 
Method Detail
- 
provide
TransactionListener provide()
Provide anTransactionListenerinstance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
A
TransactionListenershall be provided exactly once per transaction lifecycle, i.e. per call toDSLContext.transaction(TransactionalRunnable)or similar API.- Returns:
 - An 
TransactionListenerinstance. - See Also:
 TransactionListener,TransactionProvider,DefaultTransactionListenerProvider
 
 - 
 
 -