Class SameInstancePreferenceServiceInstanceListSupplier

java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.SameInstancePreferenceServiceInstanceListSupplier
All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SelectedInstanceCallback, ServiceInstanceListSupplier

public class SameInstancePreferenceServiceInstanceListSupplier extends DelegatingServiceInstanceListSupplier implements SelectedInstanceCallback
An implementation of ServiceInstanceListSupplier that selects the previously chosen instance if it's available.
Since:
2.2.7
Author:
Olga Maciaszek-Sharma, Jürgen Kreitler
  • Constructor Details

    • SameInstancePreferenceServiceInstanceListSupplier

      public SameInstancePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate)
    • SameInstancePreferenceServiceInstanceListSupplier

      public SameInstancePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cloud.client.loadbalancer.reactive.ReactiveLoadBalancer.Factory<org.springframework.cloud.client.ServiceInstance> loadBalancerClientFactory)
  • Method Details