Class Retry


  • public class Retry
    extends Object
    Encapsulates the retrying implementation for some operation. Provides bounded retry attempts with a bounded, linear backoff.
    • Method Detail

      • setBackOffFactor

        public void setBackOffFactor​(double baskOffFactor)
      • getWaitFactor

        public double getWaitFactor()
      • hasInfiniteRetries

        public boolean hasInfiniteRetries()
      • getLogInterval

        public long getLogInterval()
      • canRetry

        public boolean canRetry()
      • useRetry

        public void useRetry()
      • hasRetried

        public boolean hasRetried()
      • retriesCompleted

        public long retriesCompleted()
      • logRetry

        public void logRetry​(org.slf4j.Logger log,
                             String message,
                             Throwable t)
      • logRetry

        public void logRetry​(org.slf4j.Logger log,
                             String message)