public static interface Scheduler.Worker
Modifier and Type | Method and Description |
---|---|
Cancellation |
schedule(java.lang.Runnable task)
Schedules the task on this worker.
|
void |
shutdown()
Instructs this worker to cancel all pending tasks, all running tasks in
a best-effort manner, reject new tasks and
release any resources associated with it.
|
Cancellation schedule(java.lang.Runnable task)
task
- the task to scheduleScheduler.REJECTED
Cancellation instance is returned.void shutdown()