Class FixedExecutorProvider (2.59.0)

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
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