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.
|
io.reactivex.Flowable<java.util.List<ServiceInstance>> |
getInstances(java.lang.String serviceId)
Obtain a list of
ServiceInstance for the given service id. |
io.reactivex.Flowable<java.util.List<java.lang.String>> |
getServiceIds() |
java.lang.String |
toString() |
protected CompositeDiscoveryClient(DiscoveryClient[] discoveryClients)
discoveryClients
- The service discovery clientspublic java.lang.String getDescription()
Described
getDescription
in interface Described
public DiscoveryClient[] getDiscoveryClients()
public io.reactivex.Flowable<java.util.List<ServiceInstance>> getInstances(java.lang.String serviceId)
DiscoveryClient
ServiceInstance
for the given service id.getInstances
in interface DiscoveryClient
serviceId
- The service idPublisher
that emits a list of ServiceInstance
public io.reactivex.Flowable<java.util.List<java.lang.String>> getServiceIds()
getServiceIds
in interface DiscoveryClient
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object