Class BlockingApiVersionServiceInstanceListSupplier

java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.BlockingApiVersionServiceInstanceListSupplier
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 BlockingApiVersionServiceInstanceListSupplier extends DelegatingServiceInstanceListSupplier
A blocking version of a ServiceInstanceListSupplier that filters service instances based on the API version specified in the request. The version is extracted from the request using an ApiVersionStrategy and matched against the API_VERSION metadata field of the service instances.
Since:
5.0.x
Author:
Olga Maciaszek-Sharma
  • Field Details

    • API_VERSION

      public static final String API_VERSION
      Service instance metadata map key that service instance API version is retrieved from.
      See Also:
  • Constructor Details

  • Method Details

    • get

      public reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get(org.springframework.cloud.client.loadbalancer.Request request)
    • get

      public reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get()