Class DbDeploymentState
java.lang.Object
io.camunda.zeebe.engine.state.deployment.DbDeploymentState
- All Implemented Interfaces:
DeploymentState,MutableDeploymentState
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.DeploymentState
DeploymentState.PendingDeploymentVisitor -
Constructor Summary
ConstructorsConstructorDescriptionDbDeploymentState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPendingDeploymentDistribution(long deploymentKey, int partition) voidforeachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) getStoredDeploymentRecord(long key) booleanhasPendingDeploymentDistribution(long deploymentKey) Returns whether there are any deployment distributions pending for a deployment.booleanhasPendingDeploymentDistribution(long deploymentKey, int partitionId) Returns whether a specific deployment distribution for a specific partition is pending.voidremoveDeploymentRecord(long key) voidremovePendingDeploymentDistribution(long deploymentKey, int partition) voidstoreDeploymentRecord(long key, DeploymentRecord value)
-
Constructor Details
-
DbDeploymentState
-
-
Method Details
-
addPendingDeploymentDistribution
public void addPendingDeploymentDistribution(long deploymentKey, int partition) - Specified by:
addPendingDeploymentDistributionin interfaceMutableDeploymentState
-
removePendingDeploymentDistribution
public void removePendingDeploymentDistribution(long deploymentKey, int partition) - Specified by:
removePendingDeploymentDistributionin interfaceMutableDeploymentState
-
storeDeploymentRecord
- Specified by:
storeDeploymentRecordin interfaceMutableDeploymentState
-
removeDeploymentRecord
public void removeDeploymentRecord(long key) - Specified by:
removeDeploymentRecordin interfaceMutableDeploymentState
-
hasPendingDeploymentDistribution
public boolean hasPendingDeploymentDistribution(long deploymentKey) Description copied from interface:DeploymentStateReturns whether there are any deployment distributions pending for a deployment.- Specified by:
hasPendingDeploymentDistributionin interfaceDeploymentState- Parameters:
deploymentKey- the key of the deployment that may have a pending distribution- Returns:
trueif a pending deployment for the deployment key exists, otherwisefalse.
-
hasPendingDeploymentDistribution
public boolean hasPendingDeploymentDistribution(long deploymentKey, int partitionId) Description copied from interface:DeploymentStateReturns whether a specific deployment distribution for a specific partition is pending.- Specified by:
hasPendingDeploymentDistributionin interfaceDeploymentState- Parameters:
deploymentKey- the key of the deployment that may have a pending distributionpartitionId- the id of the partition to which the distribution might be pending- Returns:
trueif the specific pending deployment exists, otherwisefalse.
-
getStoredDeploymentRecord
- Specified by:
getStoredDeploymentRecordin interfaceDeploymentState
-
foreachPendingDeploymentDistribution
public void foreachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) - Specified by:
foreachPendingDeploymentDistributionin interfaceDeploymentState
-