@FunctionalInterface
public interface ExecutorServiceProvider
Modifier and Type | Method and Description |
---|---|
java.util.function.Supplier<? extends CloseableExecutorService> |
getExecutorServiceProvider() |
default CloseableExecutorService |
resolveExecutorService() |
java.util.function.Supplier<? extends CloseableExecutorService> getExecutorServiceProvider()
Supplier
of CloseableExecutorService
to be used when asynchronous execution required.
If null
then a single-threaded ad-hoc service is used.default CloseableExecutorService resolveExecutorService()