-
- All Implemented Interfaces:
-
com.tds.common.reactor.schedulers.SchedulerLifecycle
public final class GenericScheduledExecutorService implements SchedulerLifecycle
-
-
Field Summary
Fields Modifier and Type Field Description public final static GenericScheduledExecutorServiceINSTANCE
-
Method Summary
Modifier and Type Method Description voidstart()Allows the Scheduler instance to start threadsand accept tasks on them. voidshutdown()Instructs the Scheduler instance to stop threadsand stop accepting tasks on any outstanding Workers. static ScheduledExecutorServicegetInstance()Returns one of the single-threaded ScheduledExecutorService helper executors. -
-
Method Detail
-
start
void start()
Allows the Scheduler instance to start threadsand accept tasks on them.
Implementations should make sure the call is idempotent and thread-safe.
-
shutdown
void shutdown()
Instructs the Scheduler instance to stop threadsand stop accepting tasks on any outstanding Workers.
Implementations should make sure the call is idempotent and thread-safe.
-
getInstance
static ScheduledExecutorService getInstance()
Returns one of the single-threaded ScheduledExecutorService helper executors.
-
-
-
-