Interface TaskGlobalObjectWithTick

All Superinterfaces:
AutoCloseable, Closeable, RamaSerializable, Serializable, TaskGlobalObject

public interface TaskGlobalObjectWithTick extends TaskGlobalObject
Defines a task global object that will have tick() called at a regular frequency.
See Also:
  • Method Details

    • getFrequencyMillis

      long getFrequencyMillis()
      Defines the frequency at which tick() 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.