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
ConstructorDescriptionDbDeploymentState
(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPendingDeploymentDistribution
(long deploymentKey, int partition) void
foreachPendingDeploymentDistribution
(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) getStoredDeploymentRecord
(long key) boolean
hasPendingDeploymentDistribution
(long deploymentKey) Returns whether there are any deployment distributions pending for a deployment.boolean
hasPendingDeploymentDistribution
(long deploymentKey, int partitionId) Returns whether a specific deployment distribution for a specific partition is pending.void
removeDeploymentRecord
(long key) void
removePendingDeploymentDistribution
(long deploymentKey, int partition) void
storeDeploymentRecord
(long key, DeploymentRecord value)
-
Constructor Details
-
DbDeploymentState
-
-
Method Details
-
addPendingDeploymentDistribution
public void addPendingDeploymentDistribution(long deploymentKey, int partition) - Specified by:
addPendingDeploymentDistribution
in interfaceMutableDeploymentState
-
removePendingDeploymentDistribution
public void removePendingDeploymentDistribution(long deploymentKey, int partition) - Specified by:
removePendingDeploymentDistribution
in interfaceMutableDeploymentState
-
storeDeploymentRecord
- Specified by:
storeDeploymentRecord
in interfaceMutableDeploymentState
-
removeDeploymentRecord
public void removeDeploymentRecord(long key) - Specified by:
removeDeploymentRecord
in interfaceMutableDeploymentState
-
hasPendingDeploymentDistribution
public boolean hasPendingDeploymentDistribution(long deploymentKey) Description copied from interface:DeploymentState
Returns whether there are any deployment distributions pending for a deployment.- Specified by:
hasPendingDeploymentDistribution
in interfaceDeploymentState
- Parameters:
deploymentKey
- the key of the deployment that may have a pending distribution- Returns:
true
if a pending deployment for the deployment key exists, otherwisefalse
.
-
hasPendingDeploymentDistribution
public boolean hasPendingDeploymentDistribution(long deploymentKey, int partitionId) Description copied from interface:DeploymentState
Returns whether a specific deployment distribution for a specific partition is pending.- Specified by:
hasPendingDeploymentDistribution
in 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:
true
if the specific pending deployment exists, otherwisefalse
.
-
getStoredDeploymentRecord
- Specified by:
getStoredDeploymentRecord
in interfaceDeploymentState
-
foreachPendingDeploymentDistribution
public void foreachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) - Specified by:
foreachPendingDeploymentDistribution
in interfaceDeploymentState
-