Class RetryGatewayFilterFactory.RetryConfig
java.lang.Object
org.springframework.cloud.gateway.filter.factory.RetryGatewayFilterFactory.RetryConfig
- All Implemented Interfaces:
HasRouteId
- Enclosing class:
RetryGatewayFilterFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable RetryGatewayFilterFactory.BackoffConfig@Nullable RetryGatewayFilterFactory.JitterConfigList<org.springframework.http.HttpMethod> int@Nullable StringList<org.springframework.http.HttpStatus.Series> List<org.springframework.http.HttpStatus> @Nullable DurationsetBackoff(Duration firstBackoff, Duration maxBackoff, int factor, boolean basedOnPreviousValue) setExceptions(Class<? extends Throwable>... exceptions) setJitter(double randomFactor) setMethods(org.springframework.http.HttpMethod... methods) setRetries(int retries) voidsetRouteId(String routeId) setSeries(org.springframework.http.HttpStatus.Series... series) setStatuses(org.springframework.http.HttpStatus... statuses) setTimeout(Duration timeout) voidvalidate()
-
Constructor Details
-
RetryConfig
public RetryConfig()
-
-
Method Details
-
allMethods
-
validate
public void validate() -
getTimeout
-
setTimeout
-
getJitter
-
setJitter
public RetryGatewayFilterFactory.RetryConfig setJitter(RetryGatewayFilterFactory.JitterConfig jitter) -
setJitter
-
getBackoff
-
setBackoff
public RetryGatewayFilterFactory.RetryConfig setBackoff(RetryGatewayFilterFactory.BackoffConfig backoff) -
setBackoff
public RetryGatewayFilterFactory.RetryConfig setBackoff(Duration firstBackoff, Duration maxBackoff, int factor, boolean basedOnPreviousValue) -
setRouteId
- Specified by:
setRouteIdin interfaceHasRouteId
-
getRouteId
- Specified by:
getRouteIdin interfaceHasRouteId
-
getRetries
public int getRetries() -
setRetries
-
getSeries
-
setSeries
public RetryGatewayFilterFactory.RetryConfig setSeries(org.springframework.http.HttpStatus.Series... series) -
getStatuses
-
setStatuses
public RetryGatewayFilterFactory.RetryConfig setStatuses(org.springframework.http.HttpStatus... statuses) -
getMethods
-
setMethods
public RetryGatewayFilterFactory.RetryConfig setMethods(org.springframework.http.HttpMethod... methods) -
getExceptions
-
setExceptions
public RetryGatewayFilterFactory.RetryConfig setExceptions(Class<? extends Throwable>... exceptions)
-