Package akka.actor

Class ActorSelection$

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

    public class ActorSelection$
    extends java.lang.Object
    implements scala.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.
    See Also:
    Serialized Form
    • Field Detail

      • MODULE$

        public static final ActorSelection$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ActorSelection$

        public ActorSelection$()
    • Method Detail

      • apply

        public ActorSelection apply​(ActorRef anchorRef,
                                    java.lang.String path)
        Construct an ActorSelection from the given string representing a path relative to the given target. This operation has to create all the matching magic, so it is preferable to cache its result if the intention is to send messages frequently.
        Parameters:
        anchorRef - (undocumented)
        path - (undocumented)
        Returns:
        (undocumented)
      • apply

        public ActorSelection apply​(ActorRef anchorRef,
                                    scala.collection.Iterable<java.lang.String> elements)
        Construct an ActorSelection from the given string representing a path relative to the given target. This operation has to create all the matching magic, so it is preferable to cache its result if the intention is to send messages frequently.
        Parameters:
        anchorRef - (undocumented)
        elements - (undocumented)
        Returns:
        (undocumented)
      • deliverSelection

        public void deliverSelection​(InternalActorRef anchor,
                                     ActorRef sender,
                                     ActorSelectionMessage sel)
        INTERNAL API The receive logic for ActorSelectionMessage. The idea is to recursively descend as far as possible with local refs and hand over to that &ldquo;foreign&rdquo; child when we encounter it.
        Parameters:
        anchor - (undocumented)
        sender - (undocumented)
        sel - (undocumented)