类 KeySharedPolicy
java.lang.Object
org.apache.pulsar.client.api.KeySharedPolicy
KeyShared policy for KeyShared subscription.
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Auto split hash range key shared policy.static class
Sticky attach topic with fixed hash range. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
boolean
setAllowOutOfOrderDelivery
(boolean allowOutOfOrderDelivery) If enabled, it will relax the ordering requirement, allowing the broker to send out-of-order messages in case of failures.abstract void
validate()
-
字段详细资料
-
allowOutOfOrderDelivery
protected boolean allowOutOfOrderDelivery -
DEFAULT_HASH_RANGE_SIZE
public static final int DEFAULT_HASH_RANGE_SIZE- 另请参阅:
-
构造器详细资料
-
KeySharedPolicy
public KeySharedPolicy()
-
-
方法详细资料
-
autoSplitHashRange
-
stickyHashRange
-
validate
public abstract void validate() -
setAllowOutOfOrderDelivery
If enabled, it will relax the ordering requirement, allowing the broker to send out-of-order messages in case of failures. This will make it faster for new consumers to join without being stalled by an existing slow consumer.In this case, a single consumer will still receive all the keys, but they may be coming in different orders.
- 参数:
allowOutOfOrderDelivery
- whether to allow for out of order delivery- 返回:
- KeySharedPolicy instance
-
isAllowOutOfOrderDelivery
public boolean isAllowOutOfOrderDelivery() -
getHashRangeTotal
public int getHashRangeTotal()
-