Package org.apache.cassandra.concurrent
Class ScheduledExecutors
- java.lang.Object
-
- org.apache.cassandra.concurrent.ScheduledExecutors
-
public class ScheduledExecutors extends java.lang.ObjectCentralized location for shared executors
-
-
Field Summary
Fields Modifier and Type Field Description static ScheduledExecutorPlusnonPeriodicTasksThis executor is used for tasks that can have longer execution times, and usually are non periodic.static ScheduledExecutorPlusoptionalTasksThis executor is used for tasks that do not need to be waited for on shutdown/drain.static ScheduledExecutorPlusscheduledFastTasksThis pool is used for periodic fast (sub-microsecond) tasks.static ScheduledExecutorPlusscheduledTasksThis pool is used for periodic short (sub-second) tasks.
-
Constructor Summary
Constructors Constructor Description ScheduledExecutors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidshutdownNowAndWait(long timeout, java.util.concurrent.TimeUnit unit)
-
-
-
Field Detail
-
scheduledFastTasks
public static final ScheduledExecutorPlus scheduledFastTasks
This pool is used for periodic fast (sub-microsecond) tasks.
-
scheduledTasks
public static final ScheduledExecutorPlus scheduledTasks
This pool is used for periodic short (sub-second) tasks.
-
nonPeriodicTasks
public static final ScheduledExecutorPlus nonPeriodicTasks
This executor is used for tasks that can have longer execution times, and usually are non periodic.
-
optionalTasks
public static final ScheduledExecutorPlus optionalTasks
This executor is used for tasks that do not need to be waited for on shutdown/drain.
-
-