Interface ExecutorProvider (2.17.0)

public interface ExecutorProvider

Provides an interface to either build a ScheduledExecutorService or provide a fixed ScheduledExecutorService that will be used to make calls to a service.

Methods

getExecutor()

public abstract ScheduledExecutorService getExecutor()

Gets the executor to use.

Returns
TypeDescription
ScheduledExecutorService

shouldAutoClose()

public abstract boolean shouldAutoClose()

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

Returns
TypeDescription
boolean