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 |
start(Runnable runnable)
Schedule task.
|
void |
stop()
Stop pending task.
|
void start(Runnable runnable)
runnable
- Task to run.void stop()
Copyright © 2015. All Rights Reserved.