Class DiscoveryClientServiceInstanceListSupplier
java.lang.Object
org.springframework.cloud.loadbalancer.core.DiscoveryClientServiceInstanceListSupplier
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>, ServiceInstanceListSupplier
public class DiscoveryClientServiceInstanceListSupplier
extends Object
implements ServiceInstanceListSupplier
A discovery-client-based
ServiceInstanceListSupplier implementation.- Since:
- 2.2.0
- Author:
- Spencer Gibb, Olga Maciaszek-Sharma, Tim Ysewyn, Rod Catter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty that establishes the timeout for calls to service discovery. -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryClientServiceInstanceListSupplier(org.springframework.cloud.client.discovery.DiscoveryClient delegate, org.springframework.core.env.Environment environment) DiscoveryClientServiceInstanceListSupplier(org.springframework.cloud.client.discovery.ReactiveDiscoveryClient delegate, org.springframework.core.env.Environment environment) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServiceInstanceListSupplier
get
-
Field Details
-
SERVICE_DISCOVERY_TIMEOUT
Property that establishes the timeout for calls to service discovery.- See Also:
-
-
Constructor Details
-
DiscoveryClientServiceInstanceListSupplier
public DiscoveryClientServiceInstanceListSupplier(org.springframework.cloud.client.discovery.DiscoveryClient delegate, org.springframework.core.env.Environment environment) -
DiscoveryClientServiceInstanceListSupplier
public DiscoveryClientServiceInstanceListSupplier(org.springframework.cloud.client.discovery.ReactiveDiscoveryClient delegate, org.springframework.core.env.Environment environment)
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceServiceInstanceListSupplier
-
get
-