Package akka.discovery
Class Lookup$
- java.lang.Object
-
- akka.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 Summary
Constructors Constructor Description Lookup$()
-
Method Summary
All 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
-
apply
public Lookup apply(java.lang.String serviceName)
Create a service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
-
apply
public 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.
-
create
public 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
-
parseSrv
public 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 nulljava.lang.IllegalArgumentException- If the string doesn't not conform with the SRV format
-
isValidSrv
public boolean isValidSrv(java.lang.String srv)
Returns true if passed string conforms with SRV format. Otherwise returns false.
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-