Package io.camunda.zeebe.engine.state
Class ProcessingDbState
java.lang.Object
io.camunda.zeebe.engine.state.ProcessingDbState
- All Implemented Interfaces:
ProcessingState,MutableProcessingState,StreamProcessorLifecycleAware
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingDbState(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
-
ProcessingDbState
public ProcessingDbState(int partitionId, ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext, KeyGenerator keyGenerator)
-
-
Method Details
-
onRecovered
- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-
getDeploymentState
- Specified by:
getDeploymentStatein interfaceMutableProcessingState- Specified by:
getDeploymentStatein interfaceProcessingState
-
getProcessState
- Specified by:
getProcessStatein interfaceMutableProcessingState- Specified by:
getProcessStatein interfaceProcessingState
-
getJobState
- Specified by:
getJobStatein interfaceMutableProcessingState- Specified by:
getJobStatein interfaceProcessingState
-
getMessageState
- Specified by:
getMessageStatein interfaceMutableProcessingState- Specified by:
getMessageStatein interfaceProcessingState
-
getMessageSubscriptionState
- Specified by:
getMessageSubscriptionStatein interfaceMutableProcessingState- Specified by:
getMessageSubscriptionStatein interfaceProcessingState
-
getMessageStartEventSubscriptionState
- Specified by:
getMessageStartEventSubscriptionStatein interfaceMutableProcessingState- Specified by:
getMessageStartEventSubscriptionStatein interfaceProcessingState
-
getProcessMessageSubscriptionState
- Specified by:
getProcessMessageSubscriptionStatein interfaceMutableProcessingState- Specified by:
getProcessMessageSubscriptionStatein interfaceProcessingState
-
getIncidentState
- Specified by:
getIncidentStatein interfaceMutableProcessingState- Specified by:
getIncidentStatein interfaceProcessingState
-
getBlackListState
- Specified by:
getBlackListStatein interfaceMutableProcessingState- Specified by:
getBlackListStatein interfaceProcessingState
-
getVariableState
- Specified by:
getVariableStatein interfaceMutableProcessingState- Specified by:
getVariableStatein interfaceProcessingState
-
getTimerState
- Specified by:
getTimerStatein interfaceMutableProcessingState- Specified by:
getTimerStatein interfaceProcessingState
-
getElementInstanceState
- Specified by:
getElementInstanceStatein interfaceMutableProcessingState- Specified by:
getElementInstanceStatein interfaceProcessingState
-
getEventScopeInstanceState
- Specified by:
getEventScopeInstanceStatein interfaceMutableProcessingState- Specified by:
getEventScopeInstanceStatein interfaceProcessingState
-
getDecisionState
- Specified by:
getDecisionStatein interfaceMutableProcessingState- Specified by:
getDecisionStatein interfaceProcessingState
-
getSignalSubscriptionState
- Specified by:
getSignalSubscriptionStatein interfaceMutableProcessingState- Specified by:
getSignalSubscriptionStatein interfaceProcessingState
-
getDistributionState
- Specified by:
getDistributionStatein interfaceMutableProcessingState- Specified by:
getDistributionStatein interfaceProcessingState
-
getMigrationState
- Specified by:
getMigrationStatein interfaceMutableProcessingState
-
getPendingMessageSubscriptionState
- Specified by:
getPendingMessageSubscriptionStatein interfaceMutableProcessingState
-
getPendingProcessMessageSubscriptionState
- Specified by:
getPendingProcessMessageSubscriptionStatein interfaceMutableProcessingState
-
getKeyGenerator
- Specified by:
getKeyGeneratorin interfaceMutableProcessingState
-
getPartitionId
public int getPartitionId()- Specified by:
getPartitionIdin interfaceProcessingState
-
isEmpty
- Specified by:
isEmptyin interfaceProcessingState
-
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
-