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.

Annotations
@SerialVersionUID()
Source
Address.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
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. All

Instance Constructors

  1. new Address(protocol: String, system: String, host: String, port: Int)
  2. new Address(protocol: String, system: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Address toany2stringadd[Address] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Address, B)
    Implicit
    This member is added by an implicit conversion from Address toArrowAssoc[Address] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def ensuring(cond: (Address) => Boolean, msg: => Any): Address
    Implicit
    This member is added by an implicit conversion from Address toEnsuring[Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Address) => Boolean): Address
    Implicit
    This member is added by an implicit conversion from Address toEnsuring[Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: => Any): Address
    Implicit
    This member is added by an implicit conversion from Address toEnsuring[Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Address
    Implicit
    This member is added by an implicit conversion from Address toEnsuring[Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Address toStringFormat[Address] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getHost(): Optional[String]

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

  16. def getPort(): Optional[Integer]

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

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

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

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

    Returns a String representation formatted as:

    Returns a String representation formatted as:

    [email protected]:port

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. val port: Option[Int]
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. val protocol: String
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val system: String
  31. 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://[email protected]:port

    Definition Classes
    Address → AnyRef → Any
    Annotations
    @transient()
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def [B](y: B): (Address, B)
    Implicit
    This member is added by an implicit conversion from Address toArrowAssoc[Address] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromAddress to any2stringadd[Address]

Inherited by implicit conversion StringFormat fromAddress to StringFormat[Address]

Inherited by implicit conversion Ensuring fromAddress to Ensuring[Address]

Inherited by implicit conversion ArrowAssoc fromAddress to ArrowAssoc[Address]

Ungrouped