public final class FixedExecutorProvider extends Object implements ExecutorProvider
| Modifier and Type | Method and Description |
|---|---|
static FixedExecutorProvider |
create(ScheduledExecutorService executor)
Creates a FixedExecutorProvider.
|
ScheduledExecutorService |
getExecutor()
Gets the executor to use.
|
boolean |
shouldAutoClose()
Indicates whether the executor should be closed by the containing client class.
|
public ScheduledExecutorService getExecutor()
ExecutorProvidergetExecutor in interface ExecutorProviderpublic boolean shouldAutoClose()
ExecutorProvidershouldAutoClose in interface ExecutorProviderpublic static FixedExecutorProvider create(ScheduledExecutorService executor)