@Primary @Requires(property="micronaut.caches.discovery-client.enabled", notEquals="false") @Replaces(value=DefaultCompositeDiscoveryClient.class) public class CachingCompositeDiscoveryClient extends CompositeDiscoveryClient
DefaultCompositeDiscoveryClient with one that caches the return
 values.| Constructor and Description | 
|---|
| CachingCompositeDiscoveryClient(DiscoveryClient[] discoveryClients) | 
| Modifier and Type | Method and Description | 
|---|---|
| io.reactivex.Flowable<List<ServiceInstance>> | getInstances(String serviceId)Obtain a list of  ServiceInstancefor the given service id. | 
| io.reactivex.Flowable<List<String>> | getServiceIds() | 
close, getDescription, getDiscoveryClients, toStringpublic CachingCompositeDiscoveryClient(DiscoveryClient[] discoveryClients)
discoveryClients - The discovery clients@Cacheable(value="discovery-client") public io.reactivex.Flowable<List<ServiceInstance>> getInstances(String serviceId)
DiscoveryClientServiceInstance for the given service id.getInstances in interface DiscoveryClientgetInstances in class CompositeDiscoveryClientserviceId - The service idPublisher that emits a list of ServiceInstance@Cacheable(value="discovery-client") public io.reactivex.Flowable<List<String>> getServiceIds()
getServiceIds in interface DiscoveryClientgetServiceIds in class CompositeDiscoveryClient