Package io.camunda.zeebe.protocol.impl
Class SubscriptionUtil
java.lang.Object
io.camunda.zeebe.protocol.impl.SubscriptionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetSubscriptionPartitionId(org.agrona.DirectBuffer correlationKey, int partitionCount) Get the partition id for message subscription based on the given correlation key.
-
Constructor Details
-
SubscriptionUtil
public SubscriptionUtil()
-
-
Method Details
-
getSubscriptionPartitionId
public static int getSubscriptionPartitionId(org.agrona.DirectBuffer correlationKey, int partitionCount) Get the partition id for message subscription based on the given correlation key.- Parameters:
correlationKey- the correlation keypartitionCount- the number of partitions- Returns:
- the partition id for the subscription
-