public interface Scheduler
start(Runnable)
method: should schedule task in a specified amount of time.stop()
method: should cancel future task.Modifier and Type | Method and Description |
---|---|
void |
shutdown()
Shutdown scheduler: once done, the scheduler will not be usable
anymore.
|
void |
start(java.lang.Runnable runnable)
Schedule task.
|
void |
stop()
Stop pending task.
|
void start(java.lang.Runnable runnable)
runnable
- Task to run.void stop()
void shutdown()
Copyright © 2018. All Rights Reserved.