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 Details

    • SERVICE_DISCOVERY_TIMEOUT

      public static final String 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

      public String getServiceId()
      Specified by:
      getServiceId in interface ServiceInstanceListSupplier
    • get

      public reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get()
      Specified by:
      get in interface Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>