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<org.springframework.cloud.client.ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SelectedInstanceCallback, 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 DelegatingServiceInstanceListSupplier
delegate -
Constructor Summary
ConstructorsConstructorDescriptionCachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cache.CacheManager cacheManager) -
Method Summary
Methods inherited from class DelegatingServiceInstanceListSupplier
afterPropertiesSet, destroy, getDelegate, getServiceId, selectedServiceInstanceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-