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 of ServiceInstance for the given service id.
      org.reactivestreams.Publisher<java.util.List<java.lang.String>> getServiceIds()  
      • Methods inherited from interface java.io.Closeable

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

        getDescription, getDescription
    • Method Detail

      • getInstances

        @SingleResult
        org.reactivestreams.Publisher<java.util.List<ServiceInstance>> getInstances​(java.lang.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<java.util.List<java.lang.String>> getServiceIds()
        Returns:
        The known service IDs