public interface TaskGlobalObjectWithTick extends TaskGlobalObject
task global object
that will have tick()
called
at a regular frequency.Modifier and Type | Method and Description |
---|---|
long |
getFrequencyMillis()
Defines the frequency at which
tick() is called. |
void |
tick()
Implement this method to define desired behavior on each tick.
|
gainedLeadership, prepareForTask
long getFrequencyMillis()
tick()
is called. This
is called once when the object is being prepared on the task.void tick()