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, TransientPendingSubscriptionState transientMessageSubscriptionState, TransientPendingSubscriptionState transientProcessMessageSubscriptionState, EngineConfiguration config) -
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.int
boolean
isEmpty
(ZbColumnFamilies column) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, TransientPendingSubscriptionState transientMessageSubscriptionState, TransientPendingSubscriptionState transientProcessMessageSubscriptionState, EngineConfiguration config)
-
-
Method Details
-
onRecovered
- Specified by:
onRecovered
in interfaceStreamProcessorLifecycleAware
-
getDeploymentState
- Specified by:
getDeploymentState
in interfaceMutableProcessingState
- Specified by:
getDeploymentState
in interfaceProcessingState
-
getProcessState
- Specified by:
getProcessState
in interfaceMutableProcessingState
- Specified by:
getProcessState
in interfaceProcessingState
-
getJobState
- Specified by:
getJobState
in interfaceMutableProcessingState
- Specified by:
getJobState
in interfaceProcessingState
-
getMessageState
- Specified by:
getMessageState
in interfaceMutableProcessingState
- Specified by:
getMessageState
in interfaceProcessingState
-
getMessageSubscriptionState
- Specified by:
getMessageSubscriptionState
in interfaceMutableProcessingState
- Specified by:
getMessageSubscriptionState
in interfaceProcessingState
-
getMessageStartEventSubscriptionState
- Specified by:
getMessageStartEventSubscriptionState
in interfaceMutableProcessingState
- Specified by:
getMessageStartEventSubscriptionState
in interfaceProcessingState
-
getProcessMessageSubscriptionState
- Specified by:
getProcessMessageSubscriptionState
in interfaceMutableProcessingState
- Specified by:
getProcessMessageSubscriptionState
in interfaceProcessingState
-
getIncidentState
- Specified by:
getIncidentState
in interfaceMutableProcessingState
- Specified by:
getIncidentState
in interfaceProcessingState
-
getBannedInstanceState
- Specified by:
getBannedInstanceState
in interfaceMutableProcessingState
- Specified by:
getBannedInstanceState
in interfaceProcessingState
-
getVariableState
- Specified by:
getVariableState
in interfaceMutableProcessingState
- Specified by:
getVariableState
in interfaceProcessingState
-
getTimerState
- Specified by:
getTimerState
in interfaceMutableProcessingState
- Specified by:
getTimerState
in interfaceProcessingState
-
getElementInstanceState
- Specified by:
getElementInstanceState
in interfaceMutableProcessingState
- Specified by:
getElementInstanceState
in interfaceProcessingState
-
getEventScopeInstanceState
- Specified by:
getEventScopeInstanceState
in interfaceMutableProcessingState
- Specified by:
getEventScopeInstanceState
in interfaceProcessingState
-
getDecisionState
- Specified by:
getDecisionState
in interfaceMutableProcessingState
- Specified by:
getDecisionState
in interfaceProcessingState
-
getFormState
- Specified by:
getFormState
in interfaceMutableProcessingState
- Specified by:
getFormState
in interfaceProcessingState
-
getSignalSubscriptionState
- Specified by:
getSignalSubscriptionState
in interfaceMutableProcessingState
- Specified by:
getSignalSubscriptionState
in interfaceProcessingState
-
getDistributionState
- Specified by:
getDistributionState
in interfaceMutableProcessingState
- Specified by:
getDistributionState
in interfaceProcessingState
-
getMigrationState
- Specified by:
getMigrationState
in interfaceMutableProcessingState
- Specified by:
getMigrationState
in interfaceProcessingState
-
getUserTaskState
- Specified by:
getUserTaskState
in interfaceMutableProcessingState
- Specified by:
getUserTaskState
in interfaceProcessingState
-
getKeyGenerator
- Specified by:
getKeyGenerator
in interfaceMutableProcessingState
-
getPendingMessageSubscriptionState
- Specified by:
getPendingMessageSubscriptionState
in interfaceProcessingState
-
getPendingProcessMessageSubscriptionState
- Specified by:
getPendingProcessMessageSubscriptionState
in interfaceProcessingState
-
getPartitionId
public int getPartitionId()- Specified by:
getPartitionId
in interfaceProcessingState
-
isEmpty
- Specified by:
isEmpty
in 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
-