Class Lookup$

java.lang.Object
org.apache.pekko.discovery.Lookup$
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class Lookup$ extends Object implements scala.Product, Serializable
See Also:
  • Field Details

    • MODULE$

      public static final Lookup$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Lookup$

      public Lookup$()
  • Method Details

    • apply

      public Lookup apply(String serviceName)
      Create a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
    • apply

      public Lookup apply(String serviceName, scala.Option<String> portName, scala.Option<String> protocol)
      Create a service Lookup with serviceName, optional portName and optional protocol.
    • create

      public Lookup create(String serviceName)
      Java API

      Create a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol

    • parseSrv

      public Lookup parseSrv(String str)
      Create a service Lookup from a string with format: _portName._protocol.serviceName. (as specified by https://www.ietf.org/rfc/rfc2782.txt)

      If the passed string conforms with this format, a SRV Lookup is returned. The serviceName part must be a valid domain name. (as defined in https://tools.ietf.org/html/rfc1034)

      The string is parsed and dismembered to build a Lookup as following: Lookup(serviceName).withPortName(portName).withProtocol(protocol)

      Throws:
      NullPointerException - If the passed string is null
      IllegalArgumentException - If the string doesn't not conform with the SRV format
    • isValidSrv

      public boolean isValidSrv(String srv)
      Returns true if passed string conforms with SRV format. Otherwise returns false.
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object