Interface TimerInstanceState

All Known Subinterfaces:
MutableTimerInstanceState
All Known Implementing Classes:
DbTimerInstanceState

public interface TimerInstanceState
  • Method Details

    • processTimersWithDueDateBefore

      long processTimersWithDueDateBefore(long timestamp, TimerInstanceState.TimerVisitor consumer)
      Finds timers with due date before timestamp, and presents them to the consumer
      Returns:
      due date of the next scheduled timer (or -1 if no succeeding timer exists)
    • forEachTimerForElementInstance

      void forEachTimerForElementInstance(long elementInstanceKey, Consumer<TimerInstance> action)
      NOTE: the timer instance given to the consumer is shared and will be mutated on the next iteration.
    • get

      TimerInstance get(long elementInstanceKey, long timerKey)