Interface TimerInstanceState
- All Known Subinterfaces:
MutableTimerInstanceState
- All Known Implementing Classes:
DbTimerInstanceState
public interface TimerInstanceState
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachTimerForElementInstance(long elementInstanceKey, Consumer<TimerInstance> action) NOTE: the timer instance given to the consumer is shared and will be mutated on the next iteration.get(long elementInstanceKey, long timerKey) longprocessTimersWithDueDateBefore(long timestamp, TimerInstanceState.TimerVisitor consumer) Finds timers with due date beforetimestamp, and presents them to theconsumer
-
Method Details
-
processTimersWithDueDateBefore
Finds timers with due date beforetimestamp, and presents them to theconsumer- Returns:
- due date of the next scheduled timer (or
-1if no succeeding timer exists)
-
forEachTimerForElementInstance
NOTE: the timer instance given to the consumer is shared and will be mutated on the next iteration. -
get
-