public interface LoadBalancerRetryPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRetryNextServiceInstance(org.springframework.cloud.client.loadbalancer.reactive.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(org.springframework.cloud.client.loadbalancer.reactive.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. |
boolean canRetrySameServiceInstance(org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerRetryContext context)
true to retry on the same service instance.context - the context for the retry operationboolean canRetryNextServiceInstance(org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerRetryContext context)
true to retry on the next service instance.context - the context for the retry operationboolean retryableStatusCode(int statusCode)
true to retry on the provided HTTP status code.statusCode - the HTTP status codeboolean canRetryOnMethod(org.springframework.http.HttpMethod method)
true to retry on the provided HTTP method.method - the HTTP request methodCopyright © 2022 Pivotal Software, Inc.. All rights reserved.