Package io.micronaut.discovery
Interface DiscoveryClient
- All Superinterfaces:
AutoCloseable,Closeable,io.micronaut.core.naming.Described
- All Known Implementing Classes:
CompositeDiscoveryClient,DefaultCompositeDiscoveryClient
@Indexed(DiscoveryClient.class)
public interface DiscoveryClient
extends Closeable, AutoCloseable, io.micronaut.core.naming.Described
Main client abstraction used for service discovery.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<List<ServiceInstance>>getInstances(String serviceId) Obtain a list ofServiceInstancefor the given service id.Methods inherited from interface io.micronaut.core.naming.Described
getDescription, getDescription
-
Method Details
-
getInstances
Obtain 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
-