public class RetryableExchangeFilterFunctionLoadBalancerRetryPolicy extends Object implements LoadBalancerRetryPolicy
LoadBalancerRetryPolicy.| Constructor and Description |
|---|
RetryableExchangeFilterFunctionLoadBalancerRetryPolicy(LoadBalancerProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRetryNextServiceInstance(LoadBalancerRetryContext context)
Return
true to retry on the next service instance. |
boolean |
canRetryOnMethod(org.springframework.http.HttpMethod method)
Return
true to retry on the provided HTTP method. |
boolean |
canRetrySameServiceInstance(LoadBalancerRetryContext context)
Return
true to retry on the same service instance. |
boolean |
retryableStatusCode(int statusCode)
Return
true to retry on the provided HTTP status code. |
public RetryableExchangeFilterFunctionLoadBalancerRetryPolicy(LoadBalancerProperties properties)
public boolean canRetrySameServiceInstance(LoadBalancerRetryContext context)
LoadBalancerRetryPolicytrue to retry on the same service instance.canRetrySameServiceInstance in interface LoadBalancerRetryPolicycontext - the context for the retry operationpublic boolean canRetryNextServiceInstance(LoadBalancerRetryContext context)
LoadBalancerRetryPolicytrue to retry on the next service instance.canRetryNextServiceInstance in interface LoadBalancerRetryPolicycontext - the context for the retry operationpublic boolean retryableStatusCode(int statusCode)
LoadBalancerRetryPolicytrue to retry on the provided HTTP status code.retryableStatusCode in interface LoadBalancerRetryPolicystatusCode - the HTTP status codepublic boolean canRetryOnMethod(org.springframework.http.HttpMethod method)
LoadBalancerRetryPolicytrue to retry on the provided HTTP method.canRetryOnMethod in interface LoadBalancerRetryPolicymethod - the HTTP request methodCopyright © 2021 Pivotal Software, Inc.. All rights reserved.