Class/Object

akka.actor

ActorSelection

Related Docs: object ActorSelection | package actor

Permalink

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
Serializable, Serializable, AnyRef, Any
Type Hierarchy
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()

    Permalink

Abstract Value Members

  1. abstract val anchor: ActorRef

    Permalink
    Attributes
    protected[akka]
  2. abstract val path: IndexedSeq[SelectionPathElement]

    Permalink
    Attributes
    protected

Concrete Value Members

  1. def !(msg: Any)(implicit sender: ActorRef = Actor.noSender): Unit

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to ScalaActorSelection performed by method toScala in akka.actor.ActorSelection.
    Definition Classes
    ScalaActorSelection
  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to any2stringadd[ActorSelection] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (ActorSelection, B)

    Permalink
    Implicit information
    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()
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def anchorPath: ActorPath

    Permalink

    The akka.actor.ActorPath of the anchor actor.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (ActorSelection) ⇒ Boolean, msg: ⇒ Any): ActorSelection

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to Ensuring[ActorSelection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ActorSelection) ⇒ Boolean): ActorSelection

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to Ensuring[ActorSelection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ActorSelection

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to Ensuring[ActorSelection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ActorSelection

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorSelection to Ensuring[ActorSelection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    ActorSelection → AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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()
  18. def forward(message: Any)(implicit context: ActorContext): Unit

    Permalink

    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/'?'.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. lazy val hashCode: Int

    Permalink
    Definition Classes
    ActorSelection → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def pathString: String

    Permalink

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

  26. def resolveOne(timeout: Duration): CompletionStage[ActorRef]

    Permalink

    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.

  27. def resolveOne(timeout: FiniteDuration): Future[ActorRef]

    Permalink

    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.

  28. def resolveOne()(implicit timeout: Timeout): Future[ActorRef]

    Permalink

    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.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def tell(msg: Any, sender: ActorRef): Unit

    Permalink

    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

  31. def toSerializationFormat: String

    Permalink

    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

  32. def toString(): String

    Permalink
    Definition Classes
    ActorSelection → AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (ActorSelection, B)

    Permalink
    Implicit information
    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

  1. def resolveOneCS(timeout: Duration): CompletionStage[ActorRef]

    Permalink

    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]

    Permalink

    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.

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion toScala from ActorSelection to ScalaActorSelection

Inherited by implicit conversion any2stringadd from ActorSelection to any2stringadd[ActorSelection]

Inherited by implicit conversion StringFormat from ActorSelection to StringFormat[ActorSelection]

Inherited by implicit conversion Ensuring from ActorSelection to Ensuring[ActorSelection]

Inherited by implicit conversion ArrowAssoc from ActorSelection to ArrowAssoc[ActorSelection]

Ungrouped