- All Known Implementing Classes:
- 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 ExecutorProviderThe
ExecutorProviderSPI can be used to provide jOOQ with custom asynchronous execution behaviour.
Asynchronous operations will call back to this SPI to obtain an executor. This applies, for example, to
The following logic is applied when resolving the appropriate
Configuration.executorProvider()does not return
provide()is called to obtain an
Executorfor the asynchronous task.
- In the jOOQ Java 8 distribution,
ForkJoinPool.commonPool()is used if
- A new "one thread per call"
Executoris used in any other case.
- Lukas Eder
Executor provide()Provide an
Executorfor the task at hand.