Class RedeliveryPolicy

    • Field Detail

      • NO_MAXIMUM_REDELIVERIES

        public static final int NO_MAXIMUM_REDELIVERIES
        See Also:
        Constant Field Values
      • DEFAULT_MAXIMUM_REDELIVERIES

        public static final int DEFAULT_MAXIMUM_REDELIVERIES
        See Also:
        Constant Field Values
      • collisionAvoidanceFactor

        protected double collisionAvoidanceFactor
      • maximumRedeliveries

        protected int maximumRedeliveries
      • maximumRedeliveryDelay

        protected long maximumRedeliveryDelay
      • initialRedeliveryDelay

        protected long initialRedeliveryDelay
      • useCollisionAvoidance

        protected boolean useCollisionAvoidance
      • useExponentialBackOff

        protected boolean useExponentialBackOff
      • backOffMultiplier

        protected double backOffMultiplier
      • redeliveryDelay

        protected long redeliveryDelay
      • preDispatchCheck

        protected boolean preDispatchCheck
    • Constructor Detail

      • RedeliveryPolicy

        public RedeliveryPolicy()
    • Method Detail

      • getBackOffMultiplier

        public double getBackOffMultiplier()
      • setBackOffMultiplier

        public void setBackOffMultiplier​(double backOffMultiplier)
      • getCollisionAvoidancePercent

        public short getCollisionAvoidancePercent()
      • setCollisionAvoidancePercent

        public void setCollisionAvoidancePercent​(short collisionAvoidancePercent)
      • getInitialRedeliveryDelay

        public long getInitialRedeliveryDelay()
      • setInitialRedeliveryDelay

        public void setInitialRedeliveryDelay​(long initialRedeliveryDelay)
      • getMaximumRedeliveryDelay

        public long getMaximumRedeliveryDelay()
      • setMaximumRedeliveryDelay

        public void setMaximumRedeliveryDelay​(long maximumRedeliveryDelay)
      • getMaximumRedeliveries

        public int getMaximumRedeliveries()
      • setMaximumRedeliveries

        public void setMaximumRedeliveries​(int maximumRedeliveries)
      • getNextRedeliveryDelay

        public long getNextRedeliveryDelay​(long previousDelay)
      • isUseCollisionAvoidance

        public boolean isUseCollisionAvoidance()
      • setUseCollisionAvoidance

        public void setUseCollisionAvoidance​(boolean useCollisionAvoidance)
      • isUseExponentialBackOff

        public boolean isUseExponentialBackOff()
      • setUseExponentialBackOff

        public void setUseExponentialBackOff​(boolean useExponentialBackOff)
      • getRandomNumberGenerator

        protected static Random getRandomNumberGenerator()
      • setRedeliveryDelay

        public void setRedeliveryDelay​(long redeliveryDelay)
      • getRedeliveryDelay

        public long getRedeliveryDelay()
      • setPreDispatchCheck

        public void setPreDispatchCheck​(boolean preDispatchCheck)
      • isPreDispatchCheck

        public boolean isPreDispatchCheck()