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.
@FunctionalInterface public interface ExecutorServiceProvider
- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Supplier<? extends CloseableExecutorService>
getExecutorServiceProvider()
default CloseableExecutorService
resolveExecutorService()
-
-
-
Method Detail
-
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
default CloseableExecutorService resolveExecutorService()
-
-