Packages

final case class Address extends Product with Serializable

The address specifies the physical location under which an Actor can be reached. Examples are local addresses, identified by the ActorSystem’s name, and remote addresses, identified by protocol, host and port.

This class is final to allow use as a case class (copy method etc.); if for example a remote transport would want to associate additional information with an address, then this must be done externally.

Not for user instantiation

Annotations
@SerialVersionUID()
Source
Address.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Address
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. 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 Address(protocol: String, system: String, host: String, port: Int)
  2. new Address(protocol: String, system: String)

Value Members

  1. def copy(protocol: String = protocol, system: String = system, host: Option[String] = host, port: Option[Int] = port): Address
  2. def getHost(): Optional[String]

    Java API: The hostname if specified or empty optional if not

  3. def getPort(): Optional[Integer]

    Java API: The port if specified or empty optional if not

  4. def hasGlobalScope: Boolean

    Returns true if this Address is usable globally.

    Returns true if this Address is usable globally. Unlike locally defined addresses (akka.actor.Address#hasLocalScope) addresses of global scope are safe to sent to other hosts, as they globally and uniquely identify an addressable entity.

  5. def hasLocalScope: Boolean

    Returns true if this Address is only defined locally.

    Returns true if this Address is only defined locally. It is not safe to send locally scoped addresses to remote hosts. See also akka.actor.Address#hasGlobalScope.

  6. lazy val hashCode: Int
    Definition Classes
    Address → AnyRef → Any
    Annotations
    @transient()
  7. val host: Option[String]
  8. def hostPort: String

    Returns a String representation formatted as:

    Returns a String representation formatted as:

    system@host:port

  9. val port: Option[Int]
  10. def productElementNames: Iterator[String]
    Definition Classes
    Product
  11. val protocol: String
  12. val system: String
  13. lazy val toString: String

    Returns the canonical String representation of this Address formatted as:

    Returns the canonical String representation of this Address formatted as:

    protocol://system@host:port

    Definition Classes
    Address → AnyRef → Any
    Annotations
    @transient()