Class DbTimerInstanceState
java.lang.Object
io.camunda.zeebe.engine.state.instance.DbTimerInstanceState
- All Implemented Interfaces:
TimerInstanceState,MutableTimerInstanceState
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.TimerInstanceState
TimerInstanceState.TimerVisitor -
Constructor Summary
ConstructorsConstructorDescriptionDbTimerInstanceState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
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 theconsumervoidremove(TimerInstance timer) voidstore(TimerInstance timer)
-
Constructor Details
-
DbTimerInstanceState
public DbTimerInstanceState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Details
-
store
- Specified by:
storein interfaceMutableTimerInstanceState
-
remove
- Specified by:
removein interfaceMutableTimerInstanceState
-
processTimersWithDueDateBefore
public long processTimersWithDueDateBefore(long timestamp, TimerInstanceState.TimerVisitor consumer) Description copied from interface:TimerInstanceStateFinds timers with due date beforetimestamp, and presents them to theconsumer- Specified by:
processTimersWithDueDateBeforein interfaceTimerInstanceState- Returns:
- due date of the next scheduled timer (or
-1if no succeeding timer exists)
-
forEachTimerForElementInstance
Description copied from interface:TimerInstanceStateNOTE: the timer instance given to the consumer is shared and will be mutated on the next iteration.- Specified by:
forEachTimerForElementInstancein interfaceTimerInstanceState
-
get
- Specified by:
getin interfaceTimerInstanceState
-