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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHint()
getRetry()
boolean
If this flag is set totrue
,ServiceInstanceListSupplier#get(Request request)
method will be implemented to calldelegate.get(request)
in classes assignable fromDelegatingServiceInstanceListSupplier
that don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplier
andHealthCheckServiceInstanceListSupplier
, 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.boolean
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 fromDelegatingServiceInstanceListSupplier
that don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplier
andHealthCheckServiceInstanceListSupplier
, 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.void
setHealthCheck
(LoadBalancerProperties.HealthCheck healthCheck) void
void
setHintHeaderName
(String hintHeaderName) void
void
setStickySession
(LoadBalancerProperties.StickySession stickySession) void
setUseRawStatusCodeInResponseData
(boolean useRawStatusCodeInResponseData) void
setxForwarded
(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 fromDelegatingServiceInstanceListSupplier
that don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplier
andHealthCheckServiceInstanceListSupplier
, 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 fromDelegatingServiceInstanceListSupplier
that don't already implement that method, with the exclusion ofCachingServiceInstanceListSupplier
andHealthCheckServiceInstanceListSupplier
, 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
-