Interface ExecutorServiceProvider
- All Known Subinterfaces:
ManagedExecutorServiceSupplier
- All Known Implementing Classes:
ScpCommandFactory
,SftpSubsystemFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends CloseableExecutorService>
default CloseableExecutorService
-
Method Details
-
getExecutorServiceProvider
Supplier<? extends CloseableExecutorService> getExecutorServiceProvider()- Returns:
- A
Supplier
ofCloseableExecutorService
to be used when asynchronous execution required. Ifnull
then a single-threaded ad-hoc service is used.
-
resolveExecutorService
-