Class DelegatingServiceInstanceListSupplier
java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SelectedInstanceCallback, ServiceInstanceListSupplier
- Direct Known Subclasses:
BlockingApiVersionServiceInstanceListSupplier, CachingServiceInstanceListSupplier, HealthCheckServiceInstanceListSupplier, HintBasedServiceInstanceListSupplier, ReactiveApiVersionServiceInstanceListSupplier, RequestBasedStickySessionServiceInstanceListSupplier, RetryAwareServiceInstanceListSupplier, SameInstancePreferenceServiceInstanceListSupplier, SubsetServiceInstanceListSupplier, WeightedServiceInstanceListSupplier, ZonePreferenceServiceInstanceListSupplier
public abstract class DelegatingServiceInstanceListSupplier
extends Object
implements ServiceInstanceListSupplier, SelectedInstanceCallback, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Represents a
ServiceInstanceListSupplier that uses a delegate
ServiceInstanceListSupplier instance underneath.- Author:
- Spencer Gibb, Olga Maciaszek-Sharma, Jürgen Kreitler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidselectedServiceInstance(org.springframework.cloud.client.ServiceInstance serviceInstance) Passes the selectedServiceInstanceas an argument.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServiceInstanceListSupplier
get
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingServiceInstanceListSupplier
-
-
Method Details
-
getDelegate
-
getServiceId
- Specified by:
getServiceIdin interfaceServiceInstanceListSupplier
-
selectedServiceInstance
public void selectedServiceInstance(org.springframework.cloud.client.ServiceInstance serviceInstance) Description copied from interface:SelectedInstanceCallbackPasses the selectedServiceInstanceas an argument.- Specified by:
selectedServiceInstancein interfaceSelectedInstanceCallback- Parameters:
serviceInstance- that has been selected
-
afterPropertiesSet
-
destroy
-