Class ServiceInstanceUtils

java.lang.Object
io.smallrye.stork.utils.ServiceInstanceUtils

public class ServiceInstanceUtils extends Object
A set of utility methods around ServiceInstance.
  • Method Details

    • 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