类 KeySharedPolicy

    • 字段详细资料

      • allowOutOfOrderDelivery

        protected boolean allowOutOfOrderDelivery
      • DEFAULT_HASH_RANGE_SIZE

        public static final int DEFAULT_HASH_RANGE_SIZE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • KeySharedPolicy

        public KeySharedPolicy()
    • 方法详细资料

      • validate

        public abstract void validate()
      • setAllowOutOfOrderDelivery

        public KeySharedPolicy setAllowOutOfOrderDelivery​(boolean allowOutOfOrderDelivery)
        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()