public abstract class InstantiatingExecutorProvider extends Object implements ExecutorProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
InstantiatingExecutorProvider.Builder |
| Modifier and Type | Method and Description |
|---|---|
ScheduledExecutorService |
getExecutor()
Gets the executor to use.
|
abstract int |
getExecutorThreadCount()
The number of threads used by the executor created by this ExecutorProvider.
|
static InstantiatingExecutorProvider.Builder |
newBuilder() |
boolean |
shouldAutoClose()
Indicates whether the executor should be closed by the containing client class.
|
InstantiatingExecutorProvider.Builder |
toBuilder() |
public ScheduledExecutorService getExecutor()
ExecutorProvidergetExecutor in interface ExecutorProviderpublic boolean shouldAutoClose()
ExecutorProvidershouldAutoClose in interface ExecutorProviderpublic abstract int getExecutorThreadCount()
public InstantiatingExecutorProvider.Builder toBuilder()
public static InstantiatingExecutorProvider.Builder newBuilder()