Package io.camunda.zeebe.stream.api
Interface InterPartitionCommandSender
public interface InterPartitionCommandSender
Supports sending arbitrary commands to another partition. Sending may be unreliable and fail
silently, it is up to the caller to detect this and retry.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendCommand(int receiverPartitionId, ValueType valueType, Intent intent, UnifiedRecordValue command) voidsendCommand(int receiverPartitionId, ValueType valueType, Intent intent, Long recordKey, UnifiedRecordValue command) Uses the given record key when writing the command.
-
Method Details
-
sendCommand
void sendCommand(int receiverPartitionId, ValueType valueType, Intent intent, UnifiedRecordValue command) -
sendCommand
void sendCommand(int receiverPartitionId, ValueType valueType, Intent intent, Long recordKey, UnifiedRecordValue command) Uses the given record key when writing the command. Otherwise, behaves likesendCommand(int, io.camunda.zeebe.protocol.record.ValueType, io.camunda.zeebe.protocol.record.intent.Intent, io.camunda.zeebe.protocol.impl.record.UnifiedRecordValue). This may be used in cases where the key has been provided to the users, and the entity must be available on the receiving partition with that specific key. This also helps inform the receiving partition that this command was sent from another partition (and from which partition as the key encodes the partition id).- Parameters:
recordKey- Record key to use when writing the command. Ignored if null.
-