public final class FixedExecutorProvider implements ExecutorProviderFixedExecutorProvider is an ExecutorProvider which always returns the same executor.
Implements
ExecutorProviderStatic Methods
create(ScheduledExecutorService executor)
public static FixedExecutorProvider create(ScheduledExecutorService executor)Creates a FixedExecutorProvider.
| Parameter | |
|---|---|
| Name | Description |
executor |
ScheduledExecutorService |
| Returns | |
|---|---|
| Type | Description |
FixedExecutorProvider |
|
Methods
getExecutor()
public ScheduledExecutorService getExecutor()Gets the executor to use.
| Returns | |
|---|---|
| Type | Description |
ScheduledExecutorService |
|
shouldAutoClose()
public boolean shouldAutoClose()Indicates whether the executor should be closed by the containing client class.
| Returns | |
|---|---|
| Type | Description |
boolean |
|