Class KubernetesServicesListSupplier
java.lang.Object
org.springframework.cloud.kubernetes.commons.loadbalancer.KubernetesServicesListSupplier
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>,org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
public abstract class KubernetesServicesListSupplier
extends Object
implements org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
Implementation of
ServiceInstanceListSupplier for load balancer in SERVICE
mode.- Author:
- Piotr Minkowski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KubernetesDiscoveryPropertiesprotected final org.springframework.core.env.Environmentprotected final KubernetesServiceInstanceMapper -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesServicesListSupplier(org.springframework.core.env.Environment environment, KubernetesServiceInstanceMapper mapper, KubernetesDiscoveryProperties discoveryProperties) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
get
-
Field Details
-
environment
protected final org.springframework.core.env.Environment environment -
discoveryProperties
-
mapper
-
-
Constructor Details
-
KubernetesServicesListSupplier
public KubernetesServicesListSupplier(org.springframework.core.env.Environment environment, KubernetesServiceInstanceMapper mapper, KubernetesDiscoveryProperties discoveryProperties)
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
-
get
public abstract reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>> get()
-