public class RibbonLoadBalancedRetryPolicy extends Object implements org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
LoadBalancedRetryPolicy
for Ribbon clients.Modifier and Type | Field and Description |
---|---|
static com.netflix.client.config.IClientConfigKey<String> |
RETRYABLE_STATUS_CODES |
Constructor and Description |
---|
RibbonLoadBalancedRetryPolicy(String serviceId,
RibbonLoadBalancerContext context,
org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser loadBalanceChooser) |
RibbonLoadBalancedRetryPolicy(String serviceId,
RibbonLoadBalancerContext context,
org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser loadBalanceChooser,
com.netflix.client.config.IClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRetry(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context) |
boolean |
canRetryNextServer(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context) |
boolean |
canRetrySameServer(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context) |
void |
close(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context) |
void |
registerThrowable(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context,
Throwable throwable) |
boolean |
retryableStatusCode(int statusCode) |
public static final com.netflix.client.config.IClientConfigKey<String> RETRYABLE_STATUS_CODES
public RibbonLoadBalancedRetryPolicy(String serviceId, RibbonLoadBalancerContext context, org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser loadBalanceChooser)
public RibbonLoadBalancedRetryPolicy(String serviceId, RibbonLoadBalancerContext context, org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser loadBalanceChooser, com.netflix.client.config.IClientConfig clientConfig)
public boolean canRetry(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context)
public boolean canRetrySameServer(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context)
canRetrySameServer
in interface org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
public boolean canRetryNextServer(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context)
canRetryNextServer
in interface org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
public void close(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context)
close
in interface org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
public void registerThrowable(org.springframework.cloud.client.loadbalancer.LoadBalancedRetryContext context, Throwable throwable)
registerThrowable
in interface org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
public boolean retryableStatusCode(int statusCode)
retryableStatusCode
in interface org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicy
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.