public class CachingServiceInstanceListSupplier extends Object implements ServiceInstanceListSupplier
ServiceInstanceListSupplier implementation that tries retrieving
ServiceInstance objects from cache; if none found, retrieves instances using
DiscoveryClientServiceInstanceListSupplier.ServiceInstanceListSupplier.FixedServiceInstanceListSupplier| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_INSTANCE_CACHE_NAME
Name of the service cache instance.
|
| Constructor and Description |
|---|
CachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate,
org.springframework.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
Flux<List<ServiceInstance>> |
get() |
String |
getServiceId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfixedpublic static final String SERVICE_INSTANCE_CACHE_NAME
public CachingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, org.springframework.cache.CacheManager cacheManager)
public String getServiceId()
getServiceId in interface ServiceInstanceListSupplierpublic Flux<List<ServiceInstance>> get()
get in interface Supplier<Flux<List<ServiceInstance>>>Copyright © 2020 Pivotal Software, Inc.. All rights reserved.