Class LoadBalancerProperties
java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerProperties
- Direct Known Subclasses:
LoadBalancerClientsProperties
The base configuration bean for Spring Cloud LoadBalancer.
See
LoadBalancerClientsProperties for the ConfigurationProperties
annotation.- Since:
- 2.2.1
- Author:
- Olga Maciaszek-Sharma, Gandhimathi Velusamy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHint()getRetry()booleanIf this flag is set totrue,ServiceInstanceListSupplier#get(Request request)method will be implemented to calldelegate.get(request)in classes assignable fromDelegatingServiceInstanceListSupplierthat don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplierandHealthCheckServiceInstanceListSupplier, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done.booleanvoidsetCallGetWithRequestOnDelegates(boolean callGetWithRequestOnDelegates) If this flag is set totrue,ServiceInstanceListSupplier#get(Request request)method will be implemented to calldelegate.get(request)in classes assignable fromDelegatingServiceInstanceListSupplierthat don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplierandHealthCheckServiceInstanceListSupplier, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done.voidsetHealthCheck(LoadBalancerProperties.HealthCheck healthCheck) voidvoidsetHintHeaderName(String hintHeaderName) voidvoidsetStickySession(LoadBalancerProperties.StickySession stickySession) voidsetUseRawStatusCodeInResponseData(boolean useRawStatusCodeInResponseData) voidsetxForwarded(LoadBalancerProperties.XForwarded xForwarded)
-
Constructor Details
-
LoadBalancerProperties
public LoadBalancerProperties()
-
-
Method Details
-
getHealthCheck
-
setHealthCheck
-
getHint
-
setHint
-
getRetry
-
setRetry
-
getStickySession
-
setStickySession
-
getHintHeaderName
-
setHintHeaderName
-
setxForwarded
-
getXForwarded
-
isUseRawStatusCodeInResponseData
public boolean isUseRawStatusCodeInResponseData() -
setUseRawStatusCodeInResponseData
public void setUseRawStatusCodeInResponseData(boolean useRawStatusCodeInResponseData) -
isCallGetWithRequestOnDelegates
public boolean isCallGetWithRequestOnDelegates()If this flag is set totrue,ServiceInstanceListSupplier#get(Request request)method will be implemented to calldelegate.get(request)in classes assignable fromDelegatingServiceInstanceListSupplierthat don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplierandHealthCheckServiceInstanceListSupplier, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done. Note: in 4.1, this behaviour will become the default -
setCallGetWithRequestOnDelegates
public void setCallGetWithRequestOnDelegates(boolean callGetWithRequestOnDelegates) If this flag is set totrue,ServiceInstanceListSupplier#get(Request request)method will be implemented to calldelegate.get(request)in classes assignable fromDelegatingServiceInstanceListSupplierthat don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplierandHealthCheckServiceInstanceListSupplier, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done. Note: in 4.1, this behaviour will become the default
-