Class ExponentialBackOffSchedulingStrategy

    • Field Detail

      • DEFAULT_INITIAL_EXPIRY_IN_MILLIS

        public static final long DEFAULT_INITIAL_EXPIRY_IN_MILLIS
      • DEFAULT_MAX_EXPIRY_IN_MILLIS

        public static final long DEFAULT_MAX_EXPIRY_IN_MILLIS
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • getBackOffRate

        public long getBackOffRate()
      • getInitialExpiryInMillis

        public long getInitialExpiryInMillis()
      • getMaxExpiryInMillis

        public long getMaxExpiryInMillis()
      • calculateDelayInMillis

        protected long calculateDelayInMillis​(int consecutiveFailedAttempts)
      • checkNotNull

        @Deprecated
        protected static <T> T checkNotNull​(java.lang.String parameterName,
                                            T value)
        Deprecated.
        Use Args.notNull(Object, String)
      • checkNotNegative

        @Deprecated
        protected static long checkNotNegative​(java.lang.String parameterName,
                                               long value)
        Deprecated.
        Use Args.notNegative(long, String)