Class CachingServiceInstanceListSupplier
java.lang.Object
org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
org.springframework.cloud.loadbalancer.core.CachingServiceInstanceListSupplier
- All Implemented Interfaces:
Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,ServiceInstanceListSupplier
A
ServiceInstanceListSupplier implementation that tries retrieving
ServiceInstance objects from cache; if none found, retrieves instances using
DiscoveryClientServiceInstanceListSupplier.- Since:
- 2.2.0
- Author:
- Spencer Gibb, Olga Maciaszek-Sharma
-
Field Summary
FieldsFields inherited from class org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
delegate -
Constructor Summary
ConstructorsConstructorDescriptionCachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cache.CacheManager cacheManager) -
Method Summary
Methods inherited from class org.springframework.cloud.loadbalancer.core.DelegatingServiceInstanceListSupplier
afterPropertiesSet, destroy, getDelegate, getServiceIdMethods 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
-
SERVICE_INSTANCE_CACHE_NAME
Name of the service cache instance.
-
-
Constructor Details
-
CachingServiceInstanceListSupplier
public CachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cache.CacheManager cacheManager)
-
-
Method Details
-
get
-