Class FixedExecutorProvider (2.31.1)

public final class FixedExecutorProvider implements ExecutorProvider

FixedExecutorProvider is an ExecutorProvider which always returns the same executor.

Inheritance

java.lang.Object > FixedExecutorProvider

Implements

ExecutorProvider

Static Methods

create(ScheduledExecutorService executor)

public static FixedExecutorProvider create(ScheduledExecutorService executor)

Creates a FixedExecutorProvider.

Parameter
NameDescription
executorScheduledExecutorService
Returns
TypeDescription
FixedExecutorProvider

Methods

getExecutor()

public ScheduledExecutorService getExecutor()

Gets the executor to use.

Returns
TypeDescription
ScheduledExecutorService

shouldAutoClose()

public boolean shouldAutoClose()

Indicates whether the executor should be closed by the containing client class.

Returns
TypeDescription
boolean