public abstract class CompositeDiscoveryClient extends Object implements DiscoveryClient
DiscoveryClient instances.| Modifier | Constructor and Description | 
|---|---|
| protected  | CompositeDiscoveryClient(DiscoveryClient[] discoveryClients)Construct the CompositeDiscoveryClient from all discovery clients. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| String | getDescription()A description that describes this object. | 
| DiscoveryClient[] | getDiscoveryClients()The underlying clients. | 
| io.reactivex.Flowable<List<ServiceInstance>> | getInstances(String serviceId)Obtain a list of  ServiceInstancefor the given service id. | 
| io.reactivex.Flowable<List<String>> | getServiceIds() | 
| String | toString() | 
protected CompositeDiscoveryClient(DiscoveryClient[] discoveryClients)
discoveryClients - The service discovery clientspublic String getDescription()
DescribedgetDescription in interface Describedpublic DiscoveryClient[] getDiscoveryClients()
public io.reactivex.Flowable<List<ServiceInstance>> getInstances(String serviceId)
DiscoveryClientServiceInstance for the given service id.getInstances in interface DiscoveryClientserviceId - The service idPublisher that emits a list of ServiceInstancepublic io.reactivex.Flowable<List<String>> getServiceIds()
getServiceIds in interface DiscoveryClientpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOException