Package io.camunda.zeebe.engine.state
Class ZeebeDbState
java.lang.Object
io.camunda.zeebe.engine.state.ZeebeDbState
- All Implemented Interfaces:
ZeebeState,MutableZeebeState,StreamProcessorLifecycleAware
-
Constructor Summary
ConstructorsConstructorDescriptionZeebeDbState(int partitionId, ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext, KeyGenerator keyGenerator) -
Method Summary
Modifier and TypeMethodDescriptionforEach(ZbColumnFamilies columnFamily, KeyType keyInstance, ValueType valueInstance, BiConsumer<KeyType, ValueType> visitor) Iterates over all entries for a given column family and presents each entry to the consumer.intbooleanisEmpty(ZbColumnFamilies column) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.stream.api.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Constructor Details
-
ZeebeDbState
public ZeebeDbState(int partitionId, ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext, KeyGenerator keyGenerator)
-
-
Method Details
-
onRecovered
- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-
getDeploymentState
- Specified by:
getDeploymentStatein interfaceMutableZeebeState- Specified by:
getDeploymentStatein interfaceZeebeState
-
getProcessState
- Specified by:
getProcessStatein interfaceMutableZeebeState- Specified by:
getProcessStatein interfaceZeebeState
-
getJobState
- Specified by:
getJobStatein interfaceMutableZeebeState- Specified by:
getJobStatein interfaceZeebeState
-
getMessageState
- Specified by:
getMessageStatein interfaceMutableZeebeState- Specified by:
getMessageStatein interfaceZeebeState
-
getMessageSubscriptionState
- Specified by:
getMessageSubscriptionStatein interfaceMutableZeebeState- Specified by:
getMessageSubscriptionStatein interfaceZeebeState
-
getMessageStartEventSubscriptionState
- Specified by:
getMessageStartEventSubscriptionStatein interfaceMutableZeebeState- Specified by:
getMessageStartEventSubscriptionStatein interfaceZeebeState
-
getProcessMessageSubscriptionState
- Specified by:
getProcessMessageSubscriptionStatein interfaceMutableZeebeState- Specified by:
getProcessMessageSubscriptionStatein interfaceZeebeState
-
getIncidentState
- Specified by:
getIncidentStatein interfaceMutableZeebeState- Specified by:
getIncidentStatein interfaceZeebeState
-
getBlackListState
- Specified by:
getBlackListStatein interfaceMutableZeebeState- Specified by:
getBlackListStatein interfaceZeebeState
-
getVariableState
- Specified by:
getVariableStatein interfaceMutableZeebeState- Specified by:
getVariableStatein interfaceZeebeState
-
getTimerState
- Specified by:
getTimerStatein interfaceMutableZeebeState- Specified by:
getTimerStatein interfaceZeebeState
-
getElementInstanceState
- Specified by:
getElementInstanceStatein interfaceMutableZeebeState- Specified by:
getElementInstanceStatein interfaceZeebeState
-
getEventScopeInstanceState
- Specified by:
getEventScopeInstanceStatein interfaceMutableZeebeState- Specified by:
getEventScopeInstanceStatein interfaceZeebeState
-
getDecisionState
- Specified by:
getDecisionStatein interfaceMutableZeebeState- Specified by:
getDecisionStatein interfaceZeebeState
-
getMigrationState
- Specified by:
getMigrationStatein interfaceMutableZeebeState
-
getPendingMessageSubscriptionState
- Specified by:
getPendingMessageSubscriptionStatein interfaceMutableZeebeState
-
getPendingProcessMessageSubscriptionState
- Specified by:
getPendingProcessMessageSubscriptionStatein interfaceMutableZeebeState
-
getKeyGenerator
- Specified by:
getKeyGeneratorin interfaceMutableZeebeState
-
getSignalSubscriptionState
- Specified by:
getSignalSubscriptionStatein interfaceMutableZeebeState- Specified by:
getSignalSubscriptionStatein interfaceZeebeState
-
getPartitionId
public int getPartitionId()- Specified by:
getPartitionIdin interfaceZeebeState
-
isEmpty
- Specified by:
isEmptyin interfaceZeebeState
-
forEach
public <KeyType extends DbKey,ValueType extends DbValue> void forEach(ZbColumnFamilies columnFamily, KeyType keyInstance, ValueType valueInstance, BiConsumer<KeyType, ValueType> visitor) Iterates over all entries for a given column family and presents each entry to the consumer.Hint Should only be used in tests.
- Type Parameters:
KeyType- the key type of the column familyValueType- the value type of the column family- Parameters:
columnFamily- the enum instance of the column familykeyInstance- this instance defines the type of the column family key typevalueInstance- this instance defines the type of the column family value typevisitor- the visitor that will be called for each entry
-