final class Lookup extends AnyRef
A service lookup. It is up to each method to decide
what to do with the optional portName and protocol fields.
For example portName
could be used to distinguish between
Akka remoting ports and HTTP ports.
- Source
- ServiceDiscovery.scala
- Exceptions thrown
IllegalArgumentException
if serviceName is 'null' or an empty String
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lookup
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Lookup(serviceName: String, portName: Option[String], protocol: Option[String])
- Exceptions thrown
IllegalArgumentException
if serviceName is 'null' or an empty String
Value Members
-
def
equals(obj: Any): Boolean
- Definition Classes
- Lookup → AnyRef → Any
-
def
getPortName: Optional[String]
Java API
-
def
getProtocol: Optional[String]
Java API
-
def
hashCode(): Int
- Definition Classes
- Lookup → AnyRef → Any
- val portName: Option[String]
- val protocol: Option[String]
- val serviceName: String
-
def
toString(): String
- Definition Classes
- Lookup → AnyRef → Any
-
def
withPortName(value: String): Lookup
Which port for a service e.g.
Which port for a service e.g. Akka remoting or HTTP. Maps to "service" for an SRV records.
-
def
withProtocol(value: String): Lookup
Which protocol e.g.
Which protocol e.g. TCP or UDP. Maps to "protocol" for SRV records.