Class LoadBalancerProperties

java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerProperties
Direct Known Subclasses:
LoadBalancerClientsProperties

public class LoadBalancerProperties extends Object
The base configuration bean for Spring Cloud LoadBalancer. See LoadBalancerClientsProperties for the ConfigurationProperties annotation.
Since:
2.2.1
Author:
Olga Maciaszek-Sharma, Gandhimathi Velusamy
  • Constructor Details

    • LoadBalancerProperties

      public LoadBalancerProperties()
  • Method Details

    • getHealthCheck

      public LoadBalancerProperties.HealthCheck getHealthCheck()
    • setHealthCheck

      public void setHealthCheck(LoadBalancerProperties.HealthCheck healthCheck)
    • getHint

      public Map<String,String> getHint()
    • setHint

      public void setHint(Map<String,String> hint)
    • getRetry

      public LoadBalancerProperties.Retry getRetry()
    • setRetry

      public void setRetry(LoadBalancerProperties.Retry retry)
    • getStickySession

      public LoadBalancerProperties.StickySession getStickySession()
    • setStickySession

      public void setStickySession(LoadBalancerProperties.StickySession stickySession)
    • getHintHeaderName

      public String getHintHeaderName()
    • setHintHeaderName

      public void setHintHeaderName(String hintHeaderName)
    • setxForwarded

      public void setxForwarded(LoadBalancerProperties.XForwarded xForwarded)
    • getXForwarded

      public LoadBalancerProperties.XForwarded getXForwarded()
    • isUseRawStatusCodeInResponseData

      public boolean isUseRawStatusCodeInResponseData()
    • setUseRawStatusCodeInResponseData

      public void setUseRawStatusCodeInResponseData(boolean useRawStatusCodeInResponseData)
    • isCallGetWithRequestOnDelegates

      public boolean isCallGetWithRequestOnDelegates()
      If this flag is set to true, ServiceInstanceListSupplier#get(Request request) method will be implemented to call delegate.get(request) in classes assignable from DelegatingServiceInstanceListSupplier that don't already implement that method, with the exclusion of CachingServiceInstanceListSupplier and HealthCheckServiceInstanceListSupplier, 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 to true, ServiceInstanceListSupplier#get(Request request) method will be implemented to call delegate.get(request) in classes assignable from DelegatingServiceInstanceListSupplier that don't already implement that method, with the exclusion of CachingServiceInstanceListSupplier and HealthCheckServiceInstanceListSupplier, 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