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()
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
-
def
anchorPath: ActorPath
The akka.actor.ActorPath of the anchor actor.
-
def
equals(obj: Any): Boolean
- Definition Classes
- ActorSelection → AnyRef → Any
-
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/'?'.
-
lazy val
hashCode: Int
- Definition Classes
- ActorSelection → AnyRef → Any
-
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.
-
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 -
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
Deprecated Value Members
-
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.