Package org.apache.pekko.discovery
Class Lookup$
- java.lang.Object
- 
- org.apache.pekko.discovery.Lookup$
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- scala.Equals,- scala.Product
 
 public class Lookup$ extends java.lang.Object implements scala.Product, java.io.Serializable- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description Lookup$()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Lookupapply(java.lang.String serviceName)Create a service Lookup with only a serviceName.Lookupapply(java.lang.String serviceName, scala.Option<java.lang.String> portName, scala.Option<java.lang.String> protocol)Create a service Lookup withserviceName, optionalportNameand optionalprotocol.booleancanEqual(java.lang.Object x$1)Lookupcreate(java.lang.String serviceName)Java APIinthashCode()booleanisValidSrv(java.lang.String srv)Returns true if passed string conforms with SRV format.LookupparseSrv(java.lang.String str)Create a service Lookup from a string with format: _portName._protocol.serviceName.intproductArity()java.lang.ObjectproductElement(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
MODULE$public static final Lookup$ MODULE$ Static reference to the singleton instance of this Scala object.
 
- 
 - 
Method Detail- 
applypublic Lookup apply(java.lang.String serviceName) Create a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
 - 
applypublic Lookup apply(java.lang.String serviceName, scala.Option<java.lang.String> portName, scala.Option<java.lang.String> protocol) Create a service Lookup withserviceName, optionalportNameand optionalprotocol.
 - 
createpublic Lookup create(java.lang.String serviceName) Java APICreate a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol 
 - 
parseSrvpublic Lookup parseSrv(java.lang.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:
- java.lang.NullPointerException- If the passed string is null
- java.lang.IllegalArgumentException- If the string doesn't not conform with the SRV format
 
 - 
isValidSrvpublic boolean isValidSrv(java.lang.String srv) Returns true if passed string conforms with SRV format. Otherwise returns false.
 - 
productPrefixpublic java.lang.String productPrefix() - Specified by:
- productPrefixin interface- scala.Product
 
 - 
productAritypublic int productArity() - Specified by:
- productArityin interface- scala.Product
 
 - 
productElementpublic java.lang.Object productElement(int x$1) - Specified by:
- productElementin interface- scala.Product
 
 - 
productIteratorpublic scala.collection.Iterator<java.lang.Object> productIterator() - Specified by:
- productIteratorin interface- scala.Product
 
 - 
canEqualpublic boolean canEqual(java.lang.Object x$1) - Specified by:
- canEqualin interface- scala.Equals
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-