Class DbTimerInstanceState
- java.lang.Object
-
- io.camunda.zeebe.engine.state.instance.DbTimerInstanceState
-
- All Implemented Interfaces:
TimerInstanceState
,MutableTimerInstanceState
public final class DbTimerInstanceState extends Object implements MutableTimerInstanceState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.TimerInstanceState
TimerInstanceState.TimerVisitor
-
-
Constructor Summary
Constructors Constructor Description DbTimerInstanceState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
findTimersWithDueDateBefore(long timestamp, TimerInstanceState.TimerVisitor consumer)
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.TimerInstance
get(long elementInstanceKey, long timerKey)
void
put(TimerInstance timer)
void
remove(TimerInstance timer)
-
-
-
Constructor Detail
-
DbTimerInstanceState
public DbTimerInstanceState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Detail
-
put
public void put(TimerInstance timer)
- Specified by:
put
in interfaceMutableTimerInstanceState
-
findTimersWithDueDateBefore
public long findTimersWithDueDateBefore(long timestamp, TimerInstanceState.TimerVisitor consumer)
- Specified by:
findTimersWithDueDateBefore
in interfaceTimerInstanceState
-
forEachTimerForElementInstance
public void forEachTimerForElementInstance(long elementInstanceKey, Consumer<TimerInstance> action)
Description copied from interface:TimerInstanceState
NOTE: the timer instance given to the consumer is shared and will be mutated on the next iteration.- Specified by:
forEachTimerForElementInstance
in interfaceTimerInstanceState
-
get
public TimerInstance get(long elementInstanceKey, long timerKey)
- Specified by:
get
in interfaceTimerInstanceState
-
remove
public void remove(TimerInstance timer)
- Specified by:
remove
in interfaceMutableTimerInstanceState
-
-