Class ZonePreferenceServiceInstanceListSupplier

  • All Implemented Interfaces:
    Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, ServiceInstanceListSupplier

    public class ZonePreferenceServiceInstanceListSupplier
    extends DelegatingServiceInstanceListSupplier
    An implementation of 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.
    Since:
    2.2.1
    Author:
    Olga Maciaszek-Sharma