Package io.micronaut.discovery
Interface DiscoveryClient
- All Superinterfaces:
- AutoCloseable,- Closeable,- Described
- All Known Implementing Classes:
- CompositeDiscoveryClient,- DefaultCompositeDiscoveryClient
@Indexed(DiscoveryClient.class)
public interface DiscoveryClient
extends Closeable, AutoCloseable, Described
Main client abstraction used for service discovery.
- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Method SummaryModifier and TypeMethodDescriptiongetInstances(String serviceId) Obtain a list ofServiceInstancefor the given service id.Methods inherited from interface io.micronaut.core.naming.DescribedgetDescription, getDescription
- 
Method Details- 
getInstancesObtain a list ofServiceInstancefor the given service id.- Parameters:
- serviceId- The service id
- Returns:
- A Publisherthat emits a list ofServiceInstance
 
- 
getServiceIds- Returns:
- The known service IDs
 
 
-