Class KeySharedPolicy

    • Field Detail

      • allowOutOfOrderDelivery

        protected boolean allowOutOfOrderDelivery
      • DEFAULT_HASH_RANGE_SIZE

        public static final int DEFAULT_HASH_RANGE_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • KeySharedPolicy

        public KeySharedPolicy()
    • Method Detail

      • 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.

        Parameters:
        allowOutOfOrderDelivery - whether to allow for out of order delivery
        Returns:
        KeySharedPolicy instance
      • isAllowOutOfOrderDelivery

        public boolean isAllowOutOfOrderDelivery()
      • getHashRangeTotal

        public int getHashRangeTotal()