Class CommandDistributionBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.common.CommandDistributionBehavior
-
Constructor Summary
ConstructorDescriptionCommandDistributionBehavior
(Writers writers, int currentPartition, int partitionsCount, InterPartitionCommandSender partitionCommandSender) -
Method Summary
Modifier and TypeMethodDescription<T extends UnifiedRecordValue>
voidacknowledgeCommand
(long distributionKey, TypedRecord<T> command) <T extends UnifiedRecordValue>
voiddistributeCommand
(long distributionKey, TypedRecord<T> command) Distributes a command to the other partitions
-
Constructor Details
-
CommandDistributionBehavior
public CommandDistributionBehavior(Writers writers, int currentPartition, int partitionsCount, InterPartitionCommandSender partitionCommandSender)
-
-
Method Details
-
distributeCommand
public <T extends UnifiedRecordValue> void distributeCommand(long distributionKey, TypedRecord<T> command) Distributes a command to the other partitions- Parameters:
distributionKey
- the key which is used for the distribution. This could either be a new key, but it could also be the key of the entity that's getting distributed.command
- the command that needs to be distributed
-
acknowledgeCommand
public <T extends UnifiedRecordValue> void acknowledgeCommand(long distributionKey, TypedRecord<T> command)
-