Class KubernetesServicesListSupplier<T>
java.lang.Object
org.springframework.cloud.kubernetes.commons.loadbalancer.KubernetesServicesListSupplier<T>
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<org.springframework.cloud.client.ServiceInstance>>>, org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
public abstract class KubernetesServicesListSupplier<T>
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<T> -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesServicesListSupplier(org.springframework.core.env.Environment environment, KubernetesServiceInstanceMapper<T> mapper, KubernetesDiscoveryProperties discoveryProperties) -
Method Summary
Methods inherited from class 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<T> mapper, KubernetesDiscoveryProperties discoveryProperties)
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier
-
get
-