Class DiscoveryClientServiceInstanceListSupplier
- java.lang.Object
-
- org.springframework.cloud.loadbalancer.core.DiscoveryClientServiceInstanceListSupplier
-
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>,ServiceInstanceListSupplier
public class DiscoveryClientServiceInstanceListSupplier extends Object implements ServiceInstanceListSupplier
A discovery-client-basedServiceInstanceListSupplierimplementation.- Since:
- 2.2.0
- Author:
- Spencer Gibb, Olga Maciaszek-Sharma, Tim Ysewyn, Rod Catter
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_DISCOVERY_TIMEOUTProperty that establishes the timeout for calls to service discovery.
-
Constructor Summary
Constructors Constructor Description DiscoveryClientServiceInstanceListSupplier(DiscoveryClient delegate, org.springframework.core.env.Environment environment)DiscoveryClientServiceInstanceListSupplier(ReactiveDiscoveryClient delegate, org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<List<ServiceInstance>>get()StringgetServiceId()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
get
-
-
-
-
Field Detail
-
SERVICE_DISCOVERY_TIMEOUT
public static final String SERVICE_DISCOVERY_TIMEOUT
Property that establishes the timeout for calls to service discovery.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiscoveryClientServiceInstanceListSupplier
public DiscoveryClientServiceInstanceListSupplier(DiscoveryClient delegate, org.springframework.core.env.Environment environment)
-
DiscoveryClientServiceInstanceListSupplier
public DiscoveryClientServiceInstanceListSupplier(ReactiveDiscoveryClient delegate, org.springframework.core.env.Environment environment)
-
-
Method Detail
-
getServiceId
public String getServiceId()
- Specified by:
getServiceIdin interfaceServiceInstanceListSupplier
-
get
public reactor.core.publisher.Flux<List<ServiceInstance>> get()
- Specified by:
getin interfaceSupplier<reactor.core.publisher.Flux<List<ServiceInstance>>>
-
-