public abstract class CompositeDiscoveryClient extends java.lang.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() | 
| java.lang.String | getDescription()A description that describes this object. | 
| DiscoveryClient[] | getDiscoveryClients()The underlying clients. | 
| org.reactivestreams.Publisher<java.util.List<ServiceInstance>> | getInstances(java.lang.String serviceId)Obtain a list of  ServiceInstancefor the given service id. | 
| org.reactivestreams.Publisher<java.util.List<java.lang.String>> | getServiceIds() | 
| java.lang.String | toString() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescriptionprotected CompositeDiscoveryClient(DiscoveryClient[] discoveryClients)
discoveryClients - The service discovery clientspublic java.lang.String getDescription()
DescribedgetDescription in interface Describedpublic DiscoveryClient[] getDiscoveryClients()
public org.reactivestreams.Publisher<java.util.List<ServiceInstance>> getInstances(java.lang.String serviceId)
DiscoveryClientServiceInstance for the given service id.getInstances in interface DiscoveryClientserviceId - The service idPublisher that emits a list of ServiceInstancepublic org.reactivestreams.Publisher<java.util.List<java.lang.String>> getServiceIds()
getServiceIds in interface DiscoveryClientpublic void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object