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()
Source
ActorSelection.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorSelection
  2. Serializable
  3. AnyRef
  4. 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. Protected

Instance Constructors

  1. new ActorSelection()

Abstract Value Members

  1. abstract val anchor: ActorRef
    Attributes
    protected[akka]
  2. abstract val path: IndexedSeq[SelectionPathElement]
    Attributes
    protected

Concrete Value Members

  1. 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
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. 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
  5. 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()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def anchorPath: ActorPath

    The akka.actor.ActorPath of the anchor actor.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  10. 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
  11. 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
  12. 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
  13. 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
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean
    Definition Classes
    ActorSelection → AnyRef → Any
  16. 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/'?'.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. lazy val hashCode: Int
    Definition Classes
    ActorSelection → AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. def pathString: String

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

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

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

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

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. 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

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

  30. def toString(): String
    Definition Classes
    ActorSelection → AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. 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, formatted resolves to the new method in String which has reversed parameters.

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

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion toScala fromActorSelection to ScalaActorSelection

Inherited by implicit conversion any2stringadd fromActorSelection to any2stringadd[ActorSelection]

Inherited by implicit conversion StringFormat fromActorSelection to StringFormat[ActorSelection]

Inherited by implicit conversion Ensuring fromActorSelection to Ensuring[ActorSelection]

Inherited by implicit conversion ArrowAssoc fromActorSelection to ArrowAssoc[ActorSelection]

Ungrouped