Package feign

Interface Retryer

  • All Superinterfaces:
    java.lang.Cloneable
    All Known Implementing Classes:
    Retryer.Default

    public interface Retryer
    extends java.lang.Cloneable
    Cloned for each invocation to Client.execute(Request, feign.Request.Options). Implementations may keep state to determine if retry operations should continue or not.
    • Field Detail

      • NEVER_RETRY

        static final Retryer NEVER_RETRY
        Implementation that never retries request. It propagates the RetryableException.
    • Method Detail

      • continueOrPropagate

        void continueOrPropagate​(RetryableException e)
        if retry is permitted, return (possibly after sleeping). Otherwise propagate the exception.