Class SubsetServiceInstanceListSupplier
java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.SubsetServiceInstanceListSupplier
- 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
A
ServiceInstanceListSupplier implementation that uses
deterministic
subsetting algorithm to limit the number of instances provided by delegate.- Since:
- 4.1.0
- Author:
- Zhuozhi Ji
-
Field Summary
Fields inherited from class DelegatingServiceInstanceListSupplier
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSubsetServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.core.env.PropertyResolver resolver, org.springframework.cloud.client.loadbalancer.reactive.ReactiveLoadBalancer.Factory<org.springframework.cloud.client.ServiceInstance> factory) -
Method Summary
Methods inherited from class DelegatingServiceInstanceListSupplier
afterPropertiesSet, destroy, getDelegate, getServiceId, selectedServiceInstance
-
Constructor Details
-
SubsetServiceInstanceListSupplier
public SubsetServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.core.env.PropertyResolver resolver, org.springframework.cloud.client.loadbalancer.reactive.ReactiveLoadBalancer.Factory<org.springframework.cloud.client.ServiceInstance> factory)
-
-
Method Details
-
get
-
get
public reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get(org.springframework.cloud.client.loadbalancer.Request request) -
getInstanceId
-
getSize
public int getSize()
-