-
-
Method Summary
void
Adds a distribution to the state
void
void
Adds a pending distribution to the state
void
Adds a retriable distribution to the state
void
Adds a distribution to the given queue for the given partition,
void
Removed a distribution from the state
void
void
Removes a pending distribution from the state
void
Removes the queued distribution from the queue
void
Removes a retriable distribution from the state
Methods inherited from interface io.camunda.zeebe.engine.state.immutable.DistributionState
forEachContinuationCommand, foreachRetriableDistribution, getCommandDistributionRecord, getContinuationRecord, getNextQueuedDistributionKey, getQueueIdForDistribution, hasPendingDistribution, hasPendingDistribution, hasQueuedDistributions, hasRetriableDistribution, hasRetriableDistribution
-
Method Details
-
addCommandDistribution
Adds a distribution to the state
- Parameters:
distributionKey - the key of the distribution
commandDistributionRecord - the distribution record that needs to be stored
-
removeCommandDistribution
void removeCommandDistribution(long distributionKey)
Removed a distribution from the state
- Parameters:
distributionKey - the key of the distribution that will be removed
-
addRetriableDistribution
void addRetriableDistribution(long distributionKey,
int partition)
Adds a retriable distribution to the state
- Parameters:
distributionKey - the key of the distribution
partition - the partition for which the distribution is retriable
-
removeRetriableDistribution
void removeRetriableDistribution(long distributionKey,
int partition)
Removes a retriable distribution from the state
- Parameters:
distributionKey - the key of the retriable distribution that will be removed
partition - the partition of the retriable distribution that will be removed
-
addPendingDistribution
void addPendingDistribution(long distributionKey,
int partition)
Adds a pending distribution to the state
- Parameters:
distributionKey - the key of the distribution
partition - the partition for which the distribution is pending
-
removePendingDistribution
void removePendingDistribution(long distributionKey,
int partition)
Removes a pending distribution from the state
- Parameters:
distributionKey - the key of the pending distribution that will be removed
partition - the partition of the pending distribution that will be removed
-
enqueueCommandDistribution
void enqueueCommandDistribution(String queue,
long distributionKey,
int partition)
Adds a distribution to the given queue for the given partition,
- Parameters:
queue - the queue to which the distribution should be added
distributionKey - the key of the distribution
partition - the partition for which the distribution is queued
-
removeQueuedDistribution
void removeQueuedDistribution(String queue,
int partitionId,
long distributionKey)
Removes the queued distribution from the queue
-
-
removeContinuationCommand
void removeContinuationCommand(long key,
String queue)