Class CompositeDiscoveryClient

    • Constructor Detail

      • CompositeDiscoveryClient

        protected CompositeDiscoveryClient​(DiscoveryClient[] discoveryClients)
        Construct the CompositeDiscoveryClient from all discovery clients.
        Parameters:
        discoveryClients - The service discovery clients
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface io.micronaut.core.naming.Described
      • getDiscoveryClients

        public DiscoveryClient[] getDiscoveryClients()
        The underlying clients.
        Returns:
        The clients
      • getServiceIds

        public org.reactivestreams.Publisher<java.util.List<java.lang.String>> getServiceIds()
        Specified by:
        getServiceIds in interface DiscoveryClient
        Returns:
        The known service IDs
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object