Class ReactiveApiVersionServiceInstanceListSupplier
java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.ReactiveApiVersionServiceInstanceListSupplier
- 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 ReactiveApiVersionServiceInstanceListSupplier
extends DelegatingServiceInstanceListSupplier
A reactive version of the
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
ConstructorsConstructorDescriptionReactiveApiVersionServiceInstanceListSupplier(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
-
ReactiveApiVersionServiceInstanceListSupplier
public ReactiveApiVersionServiceInstanceListSupplier(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
-