public interface Schedulable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SLEEP
The default time between scheduler cycle
|
Modifier and Type | Method and Description |
---|---|
void |
cycle()
A cycle of the schedulable system
|
void |
onSchedulingStarts()
This method is called when the scheduler starts
|
void |
onSchedulingStops()
This method is called when the scheduler stops (by stopCondition or explicit
stop)
|
boolean |
stopCondition()
Check if the schedulable must be stopped by the scheduler.
|
static final int DEFAULT_SLEEP
void cycle()
boolean stopCondition()
void onSchedulingStarts()
void onSchedulingStops()