Packages

final class Lookup extends NoSerializationVerificationNeeded

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
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Lookup
  2. NoSerializationVerificationNeeded
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Lookup(serviceName: String, portName: Option[String], protocol: Option[String])
  2. new Lookup(serviceName: String, portName: Option[String], protocol: Option[String], discardCache: Boolean)

    serviceName

    must not be 'null' or an empty String

    discardCache

    Ask the discovery implementation to drop any cached result and do a new resolution. Optionally supported by implementations.

Value Members

  1. val discardCache: Boolean
  2. def equals(obj: Any): Boolean
    Definition Classes
    Lookup → AnyRef → Any
  3. def getPortName: Optional[String]

    Java API

  4. def getProtocol: Optional[String]

    Java API

  5. def hashCode(): Int
    Definition Classes
    Lookup → AnyRef → Any
  6. val portName: Option[String]
  7. val protocol: Option[String]
  8. val serviceName: String
  9. def toString(): String
    Definition Classes
    Lookup → AnyRef → Any
  10. def withDiscardCache: Lookup

    Ask the discovery implementation to drop any cached result and do a new resolution.

    Ask the discovery implementation to drop any cached result and do a new resolution. Optionally supported by implementations.

  11. 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.

  12. def withProtocol(value: String): Lookup

    Which protocol e.g.

    Which protocol e.g. TCP or UDP. Maps to "protocol" for SRV records.