Package org.springframework.cloud.client.loadbalancer
-
Interface Summary Interface Description AsyncRestTemplateCustomizer HttpRequestLoadBalancerRequest<T> Represents aLoadBalancerRequest
created on top of anHttpRequest
.LoadBalancedRetryFactory Factory class used to customize the retry functionality throughout Spring Cloud.LoadBalancedRetryPolicy Retry logic to use for theLoadBalancerClient
.LoadBalancerClient Represents a client-side load balancer.LoadBalancerLifecycle<RC,RES,T> Allows to define actions that should be carried out before and after load-balancing.LoadBalancerRequest<T> Simple interface used by LoadBalancerClient to apply metrics or pre and post actions around load balancer requests.LoadBalancerRequestTransformer Allows applications to transform the load-balancedHttpRequest
given the chosenServiceInstance
.Request<C> Marker interface for a request.Response<T> Response created for each request.RestTemplateCustomizer ServiceInstanceChooser Implemented by classes which use a load balancer to choose a server to send a request to.TimedRequestContext Allows setting and retrieving request start time. -
Class Summary Class Description AsyncLoadBalancerAutoConfiguration Auto-configuration for blocking client-side load balancing.AsyncLoadBalancerInterceptor CompletionContext<RES,T,C> Allows propagation of data related to load-balanced call completion status.DefaultRequest<T> A default implementation ofRequest
.DefaultRequestContext Contains information relevant to the request.DefaultResponse EmptyResponse HintRequestContext Allows propagating hints to the LoadBalancer.InterceptorRetryPolicy RetryPolicy
used by theLoadBalancerClient
when retrying failed requests.LoadBalancedRecoveryCallback<T,R> An implementation ofRecoveryCallback
which relies on an implementation ofRetryableStatusCodeException
to contain the last response object from the request.LoadBalancedRetryContext RetryContext
for load-balanced retries.LoadBalancerAutoConfiguration Auto-configuration for blocking client-side load balancing.LoadBalancerAutoConfiguration.RetryAutoConfiguration Auto configuration for retry mechanism.LoadBalancerAutoConfiguration.RetryInterceptorAutoConfiguration Auto configuration for retry intercepting mechanism.LoadBalancerClientsProperties AConfigurationProperties
bean for Spring Cloud Loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration LoadBalancerInterceptor LoadBalancerLifecycleValidator Utility class containing methods that allow to filter out supportedLoadBalancerLifecycle
beans.LoadBalancerProperties The base configuration bean for Spring Cloud LoadBalancer.LoadBalancerProperties.HealthCheck LoadBalancerProperties.Retry LoadBalancerProperties.Retry.Backoff LoadBalancerProperties.StickySession LoadBalancerProperties.XForwarded LoadBalancerRequestAdapter<T,RC> An adapter class that allows creatingRequest
objects from previouslyLoadBalancerRequest
objects.LoadBalancerRequestFactory LoadBalancerUriTools RequestData Represents the data of the request that can be safely read (without passing request reactive stream values).RequestDataContext ARequestData
-basedDefaultRequestContext
.ResponseData Represents the data of the request that can be safely read (without passing request reactive stream values).RetryableRequestContext A request context object that allows storing information on previously used service instances.RetryLoadBalancerInterceptor ServiceRequestWrapper -
Enum Summary Enum Description CompletionContext.Status Request status state. -
Exception Summary Exception Description ClientHttpResponseStatusCodeException RetryableStatusCodeException
that captures aClientHttpResponse
.RetryableStatusCodeException Exception to be thrown when the status code is deemed to be retryable. -
Annotation Types Summary Annotation Type Description LoadBalanced Annotation to mark a RestTemplate or WebClient bean to be configured to use a LoadBalancerClient.