Package feign
Interface Retryer
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
Retryer.Default
public interface Retryer extends java.lang.CloneableCloned 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 classRetryer.Default
-
Field Summary
Fields Modifier and Type Field Description static RetryerNEVER_RETRYImplementation that never retries request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Retryerclone()voidcontinueOrPropagate(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()
-
-