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 toClient.execute(Request, feign.Request.Options)
. Implementations may keep state to determine if retry operations should continue or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Retryer.Default
-
Field Summary
Fields Modifier and Type Field Description static Retryer
NEVER_RETRY
Implementation that never retries request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Retryer
clone()
void
continueOrPropagate(RetryableException e)
if retry is permitted, return (possibly after sleeping).
-
-
-
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.
-
clone
Retryer clone()
-
-