Package rx.internal.schedulers
Interface SchedulerLifecycle
-
- All Known Implementing Classes:
CachedThreadScheduler
,EventLoopsScheduler
,GenericScheduledExecutorService
,ObjectPool
public interface SchedulerLifecycle
Represents the capability of a Scheduler to be start or shut down its maintained threads.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
shutdown()
Instructs the Scheduler instance to stop threads and stop accepting tasks on any outstanding Workers.void
start()
Allows the Scheduler instance to start threads and accept tasks on them.
-
-
-
Method Detail
-
start
void start()
Allows the Scheduler instance to start threads and accept tasks on them.Implementations should make sure the call is idempotent and threadsafe.
-
shutdown
void shutdown()
Instructs the Scheduler instance to stop threads and stop accepting tasks on any outstanding Workers.Implementations should make sure the call is idempotent and threadsafe.
-
-