Package com.rpl.rama.integration
Interface TaskGlobalObjectWithTick
- All Superinterfaces:
AutoCloseable,Closeable,RamaSerializable,Serializable,TaskGlobalObject
Defines a
task global object that will have tick() called
at a regular frequency.- See Also:
-
Method Summary
Methods inherited from interface com.rpl.rama.integration.TaskGlobalObject
gainedLeadership, prepareForTask
-
Method Details
-
getFrequencyMillis
long getFrequencyMillis()Defines the frequency at whichtick()is called. This is called once when the object is being prepared on the task.- Returns:
- Tick frequency in milliseconds
-
tick
void tick()Implement this method to define desired behavior on each tick.
-