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 Summary
Modifier and TypeMethodDescriptiongetInstances
(String serviceId) Obtain a list ofServiceInstance
for the given service id.Methods inherited from interface io.micronaut.core.naming.Described
getDescription, getDescription
-
Method Details
-
getInstances
Obtain a list ofServiceInstance
for the given service id.- Parameters:
serviceId
- The service id- Returns:
- A
Publisher
that emits a list ofServiceInstance
-
getServiceIds
- Returns:
- The known service IDs
-