Class CommandDistributionBehavior

java.lang.Object
io.camunda.zeebe.engine.processing.common.CommandDistributionBehavior

public final class CommandDistributionBehavior extends Object
  • 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)