Package org.springframework.cloud.loadbalancer.core
@NullMarked
package org.springframework.cloud.loadbalancer.core
Spring Cloud load balancer core abstractions.
-
ClassDescriptionA blocking version of a
ServiceInstanceListSupplierthat filters service instances based on the API version specified in the request.A LoadBalancer-specific implementation ofDefaultApiVersionStrategy.AServiceInstanceListSupplierimplementation that tries retrievingServiceInstanceobjects from cache; if none found, retrieves instances usingDiscoveryClientServiceInstanceListSupplier.Represents aServiceInstanceListSupplierthat uses a delegateServiceInstanceListSupplierinstance underneath.A discovery-client-basedServiceInstanceListSupplierimplementation.AServiceInstanceListSupplierimplementation that verifies whether the instances are alive and only returns the healthy one, unless there are none.AServiceInstanceListSupplierimplementation that uses hints to filter service instances provided by the delegate.AnHttpServletRequestimplementation that is built from aRequestDataobject.ALoadBalancerRequestTransformerthat allows passing the instanceId) of theServiceInstanceselected by theLoadBalancerClientin a cookie.A no-op implementation ofServiceInstanceListSupplier.A random-based implementation ofReactorServiceInstanceLoadBalancer.A reactive version of theServiceInstanceListSupplierthat filters service instances based on the API version specified in the request.A LoadBalancer-specific implementation ofDefaultApiVersionStrategy.A Reactor based implementation ofReactiveLoadBalancer.A marker interface forReactorLoadBalancerthat allows selectingServiceInstanceobjects.A session cookie based implementation ofServiceInstanceListSupplierthat gives preference to the instance with an id specified in a request cookie.AServiceInstanceListSupplierimplementation that avoids picking the same service instance while retrying requests.A Round-Robin-based implementation ofReactorServiceInstanceLoadBalancer.An implementation ofServiceInstanceListSupplierthat selects the previously chosen instance if it's available.A callback interface that allows to pass the selected service instance data from the LoadBalancer.ASupplierof lists ofServiceInstanceobjects.A Builder for creating aServiceInstanceListSupplierhierarchy to be used inReactorLoadBalancerconfiguration.Allows creating aServiceInstanceListSupplierinstance based on providedConfigurableApplicationContext.Allows creating aServiceInstanceListSupplierinstance based on providedConfigurableApplicationContextand anotherServiceInstanceListSupplierinstance that will be used as a delegate.AServiceInstanceListSupplierimplementation that uses deterministic subsetting algorithm to limit the number of instances provided by delegate.AServiceInstanceListSupplierimplementation that uses weights to expand the instances provided by delegate.Represents a function that calculate the weight of the given service instance.To add X-Forwarded-Host and X-Forwarded-Proto Headers.An implementation ofServiceInstanceListSupplierthat filters instances retrieved by the delegate by zone.