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 Type
    Method
    Description
    org.reactivestreams.Publisher<List<ServiceInstance>>
    getInstances(String serviceId)
    Obtain a list of ServiceInstance for the given service id.
    org.reactivestreams.Publisher<List<String>>
     

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface io.micronaut.core.naming.Described

    getDescription, getDescription
  • Method Details

    • getInstances

      @SingleResult org.reactivestreams.Publisher<List<ServiceInstance>> getInstances(String serviceId)
      Obtain a list of ServiceInstance for the given service id.
      Parameters:
      serviceId - The service id
      Returns:
      A Publisher that emits a list of ServiceInstance
    • getServiceIds

      @SingleResult org.reactivestreams.Publisher<List<String>> getServiceIds()
      Returns:
      The known service IDs