Package org.apache.cassandra.concurrent
Class ScheduledExecutors
java.lang.Object
org.apache.cassandra.concurrent.ScheduledExecutors
Centralized location for shared executors
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScheduledExecutorPlusThis executor is used for tasks that can have longer execution times, and usually are non periodic.static final ScheduledExecutorPlusThis executor is used for tasks that do not need to be waited for on shutdown/drain.static final ScheduledExecutorPlusThis pool is used for periodic fast (sub-microsecond) tasks.static final ScheduledExecutorPlusThis pool is used for periodic short (sub-second) tasks. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
scheduledFastTasks
This pool is used for periodic fast (sub-microsecond) tasks. -
scheduledTasks
This pool is used for periodic short (sub-second) tasks. -
nonPeriodicTasks
This executor is used for tasks that can have longer execution times, and usually are non periodic. -
optionalTasks
This executor is used for tasks that do not need to be waited for on shutdown/drain.
-
-
Constructor Details
-
ScheduledExecutors
public ScheduledExecutors()
-
-
Method Details
-
shutdownNowAndWait
public static void shutdownNowAndWait(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-