public static class TestChoreService.ScheduledChoreSamples.CountingChore extends ScheduledChore
| Constructor and Description |
|---|
CountingChore(java.lang.String name,
int period) |
CountingChore(java.lang.String name,
Stoppable stopper,
int period) |
CountingChore(java.lang.String name,
Stoppable stopper,
int period,
boolean outputOnTicks) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
int |
getCountOfChoreCalls() |
protected boolean |
initialChore()
Override to run a task before we start looping.
|
boolean |
isOutputtingOnTicks() |
void |
setOutputOnTicks(boolean o) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, isInitialChoreComplete, isScheduled, run, toString, triggerNowpublic CountingChore(java.lang.String name,
int period)
public CountingChore(java.lang.String name,
Stoppable stopper,
int period)
public CountingChore(java.lang.String name,
Stoppable stopper,
int period,
boolean outputOnTicks)
protected boolean initialChore()
ScheduledChoreinitialChore in class ScheduledChoreprotected void chore()
ScheduledChorechore in class ScheduledChorepublic int getCountOfChoreCalls()
public boolean isOutputtingOnTicks()
public void setOutputOnTicks(boolean o)