Package org.springframework.cloud.loadbalancer.core
-
Interface Summary Interface Description ReactorLoadBalancer<T> A Reactor based implementation ofReactiveLoadBalancer.ReactorServiceInstanceLoadBalancer A marker interface forReactorLoadBalancerthat allows selectingServiceInstanceobjects.SelectedInstanceCallback A callback interface that allows to pass the selected service instance data from the LoadBalancer.ServiceInstanceListSupplier ASupplierof lists ofServiceInstanceobjects.ServiceInstanceListSupplierBuilder.Creator Allows creating aServiceInstanceListSupplierinstance based on providedConfigurableApplicationContext.ServiceInstanceListSupplierBuilder.DelegateCreator Allows creating aServiceInstanceListSupplierinstance based on providedConfigurableApplicationContextand anotherServiceInstanceListSupplierinstance that will be used as a delegate. -
Class Summary Class Description CachingServiceInstanceListSupplier AServiceInstanceListSupplierimplementation that tries retrievingServiceInstanceobjects from cache; if none found, retrieves instances usingDiscoveryClientServiceInstanceListSupplier.DelegatingServiceInstanceListSupplier Represents aServiceInstanceListSupplierthat uses a delegateServiceInstanceListSupplierinstance underneath.DiscoveryClientServiceInstanceListSupplier A discovery-client-basedServiceInstanceListSupplierimplementation.HealthCheckServiceInstanceListSupplier AServiceInstanceListSupplierimplementation that verifies whether the instances are alive and only returns the healthy one, unless there are none.HintBasedServiceInstanceListSupplier AServiceInstanceListSupplierimplementation that uses hints to filter service instances provided by the delegate.LoadBalancerServiceInstanceCookieTransformer ALoadBalancerRequestTransformerthat allows passing the instanceId) of theServiceInstanceselected by theLoadBalancerClientin a cookie.NoopServiceInstanceListSupplier A no-op implementation ofServiceInstanceListSupplier.RandomLoadBalancer A random-based implementation ofReactorServiceInstanceLoadBalancer.RequestBasedStickySessionServiceInstanceListSupplier A session cookie based implementation ofServiceInstanceListSupplierthat gives preference to the instance with an id specified in a request cookie.RetryAwareServiceInstanceListSupplier AServiceInstanceListSupplierimplementation that avoids picking the same service instance while retrying requests.RoundRobinLoadBalancer A Round-Robin-based implementation ofReactorServiceInstanceLoadBalancer.SameInstancePreferenceServiceInstanceListSupplier An implementation ofServiceInstanceListSupplierthat selects the previously chosen instance if it's available.ServiceInstanceListSupplierBuilder A Builder for creating aServiceInstanceListSupplierhierarchy to be used inReactorLoadBalancerconfiguration.XForwardedHeadersTransformer To add X-Forwarded-Host and X-Forwarded-Proto Headers.ZonePreferenceServiceInstanceListSupplier An implementation ofServiceInstanceListSupplierthat filters instances retrieved by the delegate by zone.