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 Lookup
apply(java.lang.String serviceName)
Create a service Lookup with only a serviceName.Lookup
apply(java.lang.String serviceName, scala.Option<java.lang.String> portName, scala.Option<java.lang.String> protocol)
Create a service Lookup withserviceName
, optionalportName
and optionalprotocol
.boolean
canEqual(java.lang.Object x$1)
Lookup
create(java.lang.String serviceName)
Java APIint
hashCode()
boolean
isValidSrv(java.lang.String srv)
Returns true if passed string conforms with SRV format.Lookup
parseSrv(java.lang.String str)
Create a service Lookup from a string with format: _portName._protocol.serviceName.int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
-
-
-
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
, optionalportName
and 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-