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() @ccompatUsedUntil213()
- Source
- ActorSelection.scala
- Alphabetic
- By Inheritance
- ActorSelection
- Serializable
- Serializable
- AnyRef
- Any
- by toScala
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
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 to ScalaActorSelection 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 to any2stringadd[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 to ArrowAssoc[ActorSelection] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        anchorPath: ActorPath
      
      
      The akka.actor.ActorPath of the anchor actor. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (ActorSelection) ⇒ Boolean, msg: ⇒ Any): ActorSelection
      
      
      - Implicit
- This member is added by an implicit conversion from ActorSelection to Ensuring[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 to Ensuring[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 to Ensuring[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 to Ensuring[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
      
      
        formatted(fmtstr: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from ActorSelection to StringFormat[ActorSelection] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        forward(message: Any)(implicit context: ActorContext): Unit
      
      
      Forwards 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[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        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
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        pathString: String
      
      
      String 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): Unit
      
      
      Sends 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: String
      
      
      String 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( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        →[B](y: B): (ActorSelection, B)
      
      
      - Implicit
- This member is added by an implicit conversion from ActorSelection to ArrowAssoc[ActorSelection] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
 
Deprecated Value Members
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
- Deprecated
- (Since version ) see corresponding Javadoc for more information. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        resolveOneCS(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.- Annotations
- @deprecated
- Deprecated
- (Since version 2.5.20) Use the overloaded method resolveOne which accepts java.time.Duration instead. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        resolveOneCS(timeout: FiniteDuration): 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.- Annotations
- @deprecated
- Deprecated
- (Since version 2.5.20) Use the overloaded method resolveOne which accepts java.time.Duration instead.