public static class KeySharedPolicy.KeySharedPolicySticky extends KeySharedPolicy
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.
KeySharedPolicy.KeySharedPolicyAutoSplit, KeySharedPolicy.KeySharedPolicySticky
限定符和类型 | 字段和说明 |
---|---|
protected List<Range> |
ranges |
allowOutOfOrderDelivery, DEFAULT_HASH_RANGE_SIZE, keySharedMode
限定符和类型 | 方法和说明 |
---|---|
List<Range> |
getRanges() |
KeySharedPolicy.KeySharedPolicySticky |
ranges(List<Range> ranges) |
KeySharedPolicy.KeySharedPolicySticky |
ranges(Range... ranges) |
void |
validate() |
autoSplitHashRange, getHashRangeTotal, getKeySharedMode, isAllowOutOfOrderDelivery, setAllowOutOfOrderDelivery, stickyHashRange
public KeySharedPolicy.KeySharedPolicySticky ranges(List<Range> ranges)
public KeySharedPolicy.KeySharedPolicySticky ranges(Range... ranges)
public void validate()
validate
在类中 KeySharedPolicy
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.