Interface ExecutorServiceProvider
-
- All Known Subinterfaces:
ManagedExecutorServiceSupplier
- 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 CloseableExecutorServiceresolveExecutorService()
-
-
-
Method Detail
-
getExecutorServiceProvider
Supplier<? extends CloseableExecutorService> getExecutorServiceProvider()
- Returns:
- A
SupplierofCloseableExecutorServiceto be used when asynchronous execution required. Ifnullthen a single-threaded ad-hoc service is used.
-
resolveExecutorService
default CloseableExecutorService resolveExecutorService()
-
-