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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate a service Lookup with only a serviceName.Create a service Lookup withserviceName, optionalportNameand optionalprotocol.booleanJava APIinthashCode()booleanisValidSrv(String srv) Returns true if passed string conforms with SRV format.Create a service Lookup from a string with format: _portName._protocol.serviceName.intproductElement(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualsequalsMethods inherited from interface scala.ProductproductElementName, productElementNames
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
Lookup$public Lookup$()
 
- 
- 
Method Details- 
applyCreate a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
- 
applypublic Lookup apply(String serviceName, scala.Option<String> portName, scala.Option<String> protocol) Create a service Lookup withserviceName, optionalportNameand optionalprotocol.
- 
createJava APICreate a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol 
- 
parseSrvCreate 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
 
- 
isValidSrvReturns true if passed string conforms with SRV format. Otherwise returns false.
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
- 
productAritypublic int productArity()- Specified by:
- productArityin interface- scala.Product
 
- 
productElement- Specified by:
- productElementin interface- scala.Product
 
- 
productIterator- Specified by:
- productIteratorin interface- scala.Product
 
- 
canEqual- Specified by:
- canEqualin interface- scala.Equals
 
- 
hashCodepublic int hashCode()
- 
toString
 
-