Class BlockingLoadBalancedRetryPolicy
java.lang.Object
org.springframework.cloud.loadbalancer.blocking.retry.BlockingLoadBalancedRetryPolicy
- All Implemented Interfaces:
LoadBalancedRetryPolicy
A
LoadBalancedRetryPolicy implementation for
BlockingLoadBalancerClient. Based on RibbonLoadBalancedRetryPolicy
to achieve feature-parity.- Since:
- 2.2.6
- Author:
- Olga Maciaszek-Sharma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRetry(LoadBalancedRetryContext context) booleanbooleanvoidclose(LoadBalancedRetryContext context) voidregisterThrowable(LoadBalancedRetryContext context, Throwable throwable) booleanretryableStatusCode(int statusCode)
-
Constructor Details
-
BlockingLoadBalancedRetryPolicy
-
-
Method Details
-
canRetry
-
canRetrySameServer
- Specified by:
canRetrySameServerin interfaceLoadBalancedRetryPolicy
-
canRetryNextServer
- Specified by:
canRetryNextServerin interfaceLoadBalancedRetryPolicy
-
close
- Specified by:
closein interfaceLoadBalancedRetryPolicy
-
registerThrowable
- Specified by:
registerThrowablein interfaceLoadBalancedRetryPolicy
-
retryableStatusCode
public boolean retryableStatusCode(int statusCode) - Specified by:
retryableStatusCodein interfaceLoadBalancedRetryPolicy
-