public static class TestChoreService.ScheduledChoreSamples.FailInitialChore extends ScheduledChore
Constructor and Description |
---|
FailInitialChore(String name,
int period,
int failThreshold) |
FailInitialChore(String name,
Stoppable stopper,
int period,
int failThreshold) |
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 FailInitialChore(String name, int period, int failThreshold)
failThreshold
- Number of times the Chore fails when trying to execute initialChore
before succeeding.protected boolean initialChore()
ScheduledChore
initialChore
in class ScheduledChore
protected void chore()
ScheduledChore
chore
in class ScheduledChore