abstract class ActorSelection extends Serializable
An ActorSelection is a logical view of a section of an ActorSystem's tree of Actors, allowing for broadcasting of messages to that section.
- Self Type
- ActorSelection with ScalaActorSelection
- Annotations
- @SerialVersionUID()
- Source
- ActorSelection.scala
- Alphabetic
- By Inheritance
- ActorSelection
- Serializable
- AnyRef
- Any
- by toScala
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new ActorSelection()
Abstract Value Members
-   abstract  val anchor: ActorRef- Attributes
- protected[akka]
 
-   abstract  val path: IndexedSeq[SelectionPathElement]- Attributes
- protected
 
Concrete Value Members
-    def !(msg: Any)(implicit sender: ActorRef = Actor.noSender): Unit- Implicit
- This member is added by an implicit conversion from ActorSelection toScalaActorSelection performed by method toScala in akka.actor.ActorSelection.
- Definition Classes
- ScalaActorSelection
 
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-    def +(other: String): String- Implicit
- This member is added by an implicit conversion from ActorSelection toany2stringadd[ActorSelection] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
 
-    def ->[B](y: B): (ActorSelection, B)- Implicit
- This member is added by an implicit conversion from ActorSelection toArrowAssoc[ActorSelection] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-    def anchorPath: ActorPathThe akka.actor.ActorPath of the anchor actor. 
-   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 ensuring(cond: (ActorSelection) => Boolean, msg: => Any): ActorSelection- Implicit
- This member is added by an implicit conversion from ActorSelection toEnsuring[ActorSelection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: (ActorSelection) => Boolean): ActorSelection- Implicit
- This member is added by an implicit conversion from ActorSelection toEnsuring[ActorSelection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: Boolean, msg: => Any): ActorSelection- Implicit
- This member is added by an implicit conversion from ActorSelection toEnsuring[ActorSelection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: Boolean): ActorSelection- Implicit
- This member is added by an implicit conversion from ActorSelection toEnsuring[ActorSelection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(obj: Any): Boolean- Definition Classes
- ActorSelection → AnyRef → Any
 
-    def forward(message: Any)(implicit context: ActorContext): UnitForwards the message and passes the original sender actor as the sender. Forwards the message and passes the original sender actor as the sender. Works, no matter whether originally sent with tell/'!' or ask/'?'. 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-    lazy val hashCode: Int- Definition Classes
- ActorSelection → AnyRef → Any
 
-   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()
 
-    def pathString: StringString representation of the path elements, starting with "/" and separated with "/". 
-    def resolveOne(timeout: Duration): CompletionStage[ActorRef]Java API for #resolveOne Java API for #resolveOne Resolve the ActorRef matching this selection. The result is returned as a CompletionStage that is completed with the ActorRef if such an actor exists. It is completed with failure ActorNotFound if no such actor exists or the identification didn't complete within the supplied timeout.
-    def resolveOne(timeout: FiniteDuration): Future[ActorRef]Resolve the ActorRef matching this selection. Resolve the ActorRef matching this selection. The result is returned as a Future that is completed with the ActorRef if such an actor exists. It is completed with failure ActorNotFound if no such actor exists or the identification didn't complete within the supplied timeout.Under the hood it talks to the actor to verify its existence and acquire its ActorRef. 
-    def resolveOne()(implicit timeout: Timeout): Future[ActorRef]Resolve the ActorRef matching this selection. Resolve the ActorRef matching this selection. The result is returned as a Future that is completed with the ActorRef if such an actor exists. It is completed with failure ActorNotFound if no such actor exists or the identification didn't complete within the supplied timeout.Under the hood it talks to the actor to verify its existence and acquire its ActorRef. 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def tell(msg: Any, sender: ActorRef): UnitSends the specified message to this ActorSelection, i.e. Sends the specified message to this ActorSelection, i.e. fire-and-forget semantics, including the sender reference if possible. Pass ActorRef#noSender or nullas sender if there is nobody to reply to
-    def toSerializationFormat: StringString representation of the actor selection suitable for storage and recreation. String representation of the actor selection suitable for storage and recreation. The output is similar to the URI fragment returned by akka.actor.ActorPath#toSerializationFormat. - returns
- URI fragment 
 
-    def toString(): String- Definition Classes
- ActorSelection → AnyRef → Any
 
-   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 ActorSelection toStringFormat[ActorSelection] 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): (ActorSelection, B)- Implicit
- This member is added by an implicit conversion from ActorSelection toArrowAssoc[ActorSelection] 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.