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
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-  def +(other: String): String
-  def ->[B](y: B): (Address, B)
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
 
-  def copy(protocol: String = protocol, system: String = system, host: Option[String] = host, port: Option[Int] = port): Address
-  def ensuring(cond: (Address) => Boolean, msg: => Any): Address
-  def ensuring(cond: (Address) => Boolean): Address
-  def ensuring(cond: Boolean, msg: => Any): Address
-  def ensuring(cond: Boolean): Address
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-    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: BooleanReturns 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: BooleanReturns 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: StringReturns a String representation formatted as: Returns a String representation formatted as: system@host:port
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-  val port: Option[Int]
-    def productElementNames: Iterator[String]- Definition Classes
- Product
 
-  val protocol: String
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-  val system: String
-    lazy val toString: StringReturns 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()
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- (Since version 9) 
 
-    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
- @deprecated @inline()
- Deprecated
- (Since version 2.12.16) Use - formatString.format(value)instead of- value.formatted(formatString), or use the- f""string interpolator. In Java 15 and later,- formattedresolves to the new method in String which has reversed parameters.
 
-    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.