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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringService instance metadata map key that service instance API version is retrieved from.Fields inherited from class DelegatingServiceInstanceListSupplier
delegate -
Constructor Summary
ConstructorsConstructorDescriptionBlockingApiVersionServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, LoadBalancerClientFactory loadBalancerClientFactory) -
Method Summary
Methods inherited from class DelegatingServiceInstanceListSupplier
afterPropertiesSet, destroy, getDelegate, getServiceId, selectedServiceInstance
-
Field Details
-
API_VERSION
Service instance metadata map key that service instance API version is retrieved from.- See Also:
-
-
Constructor Details
-
BlockingApiVersionServiceInstanceListSupplier
public BlockingApiVersionServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, LoadBalancerClientFactory loadBalancerClientFactory)
-
-
Method Details
-
get
public reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get(org.springframework.cloud.client.loadbalancer.Request request) -
get
-