@ConfigurationProperties(value="spring.cloud.loadbalancer.retry") public class LoadBalancerRetryProperties extends Object
LoadBalancerClient
.Constructor and Description |
---|
LoadBalancerRetryProperties() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxRetriesOnNextServiceInstance() |
int |
getMaxRetriesOnSameServiceInstance() |
Set<Integer> |
getRetryableStatusCodes() |
boolean |
isEnabled()
Returns true if the load balancer should retry failed requests.
|
boolean |
isRetryOnAllOperations() |
void |
setEnabled(boolean enabled)
Sets whether the load balancer should retry failed requests.
|
void |
setMaxRetriesOnNextServiceInstance(int maxRetriesOnNextServiceInstance) |
void |
setMaxRetriesOnSameServiceInstance(int maxRetriesOnSameServiceInstance) |
void |
setRetryableStatusCodes(Set<Integer> retryableStatusCodes) |
void |
setRetryOnAllOperations(boolean retryOnAllOperations) |
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- Whether the load balancer should retry failed requests.public boolean isRetryOnAllOperations()
public void setRetryOnAllOperations(boolean retryOnAllOperations)
public int getMaxRetriesOnSameServiceInstance()
public void setMaxRetriesOnSameServiceInstance(int maxRetriesOnSameServiceInstance)
public int getMaxRetriesOnNextServiceInstance()
public void setMaxRetriesOnNextServiceInstance(int maxRetriesOnNextServiceInstance)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.