Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorSelection
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by toScala
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorSelection()

Concrete Value Members

  1. 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
  2. def anchorPath: ActorPath

    The akka.actor.ActorPath of the anchor actor.

  3. def equals(obj: Any): Boolean
    Definition Classes
    ActorSelection → AnyRef → Any
  4. 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/'?'.

  5. lazy val hashCode: Int
    Definition Classes
    ActorSelection → AnyRef → Any
  6. def pathString: String

    String representation of the path elements, starting with "/" and separated with "/".

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

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

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

  10. 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 null as sender if there is nobody to reply to

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

  12. def toString(): String
    Definition Classes
    ActorSelection → AnyRef → Any

Deprecated Value Members

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

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