Class ServiceInstanceUtils

    • Method Detail

      • findMatching

        public static ServiceInstance findMatching​(Collection<ServiceInstance> serviceInstances,
                                                   String hostname,
                                                   int port)
        Finds a matching instance for a given hostname and port
        Parameters:
        serviceInstances - the list of instances
        hostname - the hostname
        port - the port
        Returns:
        the found instance or null if none matches