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
- Alphabetic
- By Inheritance
- Address
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- def copy(protocol: String = protocol, system: String = system, host: Option[String] = host, port: Option[Int] = port): Address
- def getHost(): Optional[String]
Java API: The hostname if specified or empty optional if not
- def getPort(): Optional[Integer]
Java API: The port if specified or empty optional if not
- 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.
- 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.
- lazy val hashCode: Int
- Definition Classes
- Address → AnyRef → Any
- Annotations
- @transient()
- val host: Option[String]
- def hostPort: String
Returns a String representation formatted as:
Returns a String representation formatted as:
system@host:port
- val port: Option[Int]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val protocol: String
- val system: String
- 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()