Package io.micronaut.discovery
Interface DiscoveryClient
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,io.micronaut.core.naming.Described
- All Known Implementing Classes:
CompositeDiscoveryClient
,DefaultCompositeDiscoveryClient
@Indexed(DiscoveryClient.class) public interface DiscoveryClient extends java.io.Closeable, java.lang.AutoCloseable, io.micronaut.core.naming.Described
Main client abstraction used for service discovery.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<java.util.List<ServiceInstance>>
getInstances(java.lang.String serviceId)
Obtain a list ofServiceInstance
for the given service id.org.reactivestreams.Publisher<java.util.List<java.lang.String>>
getServiceIds()
-
-
-
Method Detail
-
getInstances
@SingleResult org.reactivestreams.Publisher<java.util.List<ServiceInstance>> getInstances(java.lang.String serviceId)
Obtain a list ofServiceInstance
for the given service id.- Parameters:
serviceId
- The service id- Returns:
- A
Publisher
that emits a list ofServiceInstance
-
getServiceIds
@SingleResult org.reactivestreams.Publisher<java.util.List<java.lang.String>> getServiceIds()
- Returns:
- The known service IDs
-
-