Package org.apache.pekko.discovery
Class Lookup$
java.lang.Object
org.apache.pekko.discovery.Lookup$
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a service Lookup with only a serviceName.Create a service Lookup withserviceName
, optionalportName
and optionalprotocol
.boolean
Java APIint
hashCode()
boolean
isValidSrv
(String srv) Returns true if passed string conforms with SRV format.Create a service Lookup from a string with format: _portName._protocol.serviceName.int
productElement
(int x$1) scala.collection.Iterator<Object>
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
equals
Methods inherited from interface scala.Product
productElementName, productElementNames
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Lookup$
public Lookup$()
-
-
Method Details
-
apply
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 withserviceName
, optionalportName
and optionalprotocol
. -
create
Java APICreate a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
-
parseSrv
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 nullIllegalArgumentException
- If the string doesn't not conform with the SRV format
-
isValidSrv
Returns true if passed string conforms with SRV format. Otherwise returns false. -
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode() -
toString
-