public class ZonePreferenceServiceInstanceListSupplier extends Object implements ServiceInstanceListSupplier
ServiceInstanceListSupplier that filters instances
retrieved by the delegate by zone. The zone is retrieved from the
spring.cloud.loadbalancer.zone property. If the zone is not set or no
instances are found for the requested zone, all instances retrieved by the delegate are
returned.ServiceInstanceListSupplier.FixedServiceInstanceListSupplier| Constructor and Description |
|---|
ZonePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate,
LoadBalancerZoneConfig zoneConfig) |
| Modifier and Type | Method and Description |
|---|---|
Flux<List<ServiceInstance>> |
get() |
String |
getServiceId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfixedpublic ZonePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, LoadBalancerZoneConfig zoneConfig)
public String getServiceId()
getServiceId in interface ServiceInstanceListSupplierpublic Flux<List<ServiceInstance>> get()
get in interface Supplier<Flux<List<ServiceInstance>>>Copyright © 2020 Pivotal Software, Inc.. All rights reserved.