Class KeySharedPolicy.KeySharedPolicySticky

java.lang.Object
org.apache.pulsar.client.api.KeySharedPolicy
org.apache.pulsar.client.api.KeySharedPolicy.KeySharedPolicySticky
Enclosing class:
KeySharedPolicy

public static class KeySharedPolicy.KeySharedPolicySticky extends KeySharedPolicy
Sticky attach topic with fixed hash range.

Total hash range size is 65536, using the sticky hash range policy should ensure that the provided ranges by all consumers can cover the total hash range [0, 65535]. If not, while broker dispatcher can't find the consumer for message, the cursor will rewind.