Package feign

Class Retryer.Default

  • All Implemented Interfaces:
    Retryer, java.lang.Cloneable
    Enclosing interface:
    Retryer

    public static class Retryer.Default
    extends java.lang.Object
    implements Retryer
    • Constructor Detail

      • Default

        public Default()
      • Default

        public Default​(long period,
                       long maxPeriod,
                       int maxAttempts)
    • Method Detail

      • currentTimeMillis

        protected long currentTimeMillis()
      • continueOrPropagate

        public void continueOrPropagate​(RetryableException e)
        Description copied from interface: Retryer
        if retry is permitted, return (possibly after sleeping). Otherwise propagate the exception.
        Specified by:
        continueOrPropagate in interface Retryer
      • clone

        public Retryer clone()
        Specified by:
        clone in interface Retryer
        Overrides:
        clone in class java.lang.Object