public static class TestChoreService.ScheduledChoreSamples.SleepingChore extends ScheduledChore
Constructor and Description |
---|
SleepingChore(String name,
int chorePeriod,
int sleepTime) |
SleepingChore(String name,
Stoppable stopper,
int period,
int sleepTime) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
protected boolean |
initialChore()
Override to run a task before we start looping.
|
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, isInitialChoreComplete, isScheduled, run, toString, triggerNow
public SleepingChore(String name, int chorePeriod, int sleepTime)
protected boolean initialChore()
ScheduledChore
initialChore
in class ScheduledChore
protected void chore()
ScheduledChore
chore
in class ScheduledChore