Class ExponentialBackOff

java.lang.Object
io.smallrye.faulttolerance.core.retry.ExponentialBackOff
All Implemented Interfaces:
BackOff

public class ExponentialBackOff extends Object implements BackOff
Always ignores the cause passed to getInMillis.
  • Constructor Details

    • ExponentialBackOff

      public ExponentialBackOff(long initialDelayInMillis, int factor, Jitter jitter, long maxDelayInMillis)
  • Method Details

    • getInMillis

      public long getInMillis(Throwable cause)
      Specified by:
      getInMillis in interface BackOff
      Parameters:
      cause - exception causing the retry attempt before which the delay occurs
      Returns:
      non-negative number