Package akka.actor

Class LocalActorRef

    • Method Detail

      • $bang

        public void $bang​(java.lang.Object message,
                          ActorRef sender)
        Description copied from interface: ScalaActorRef
        Sends a one-way asynchronous message. E.g. fire-and-forget semantics.

        If invoked from within an actor then the actor reference is implicitly passed on as the implicit 'sender' argument.

        This actor 'sender' reference is then available in the receiving actor in the 'sender()' member variable, if invoked from within an Actor. If not then no sender is available.

           actor ! message
         

        Specified by:
        $bang in interface ScalaActorRef
        Parameters:
        message - (undocumented)
        sender - (undocumented)
      • getChild

        public InternalActorRef getChild​(scala.collection.Iterator<java.lang.String> names)
        Description copied from class: InternalActorRef
        Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location. This method shall return the end result, i.e. not only the next step in the look-up; this will typically involve recursive invocation. A path element of ".." signifies the parent, a trailing "" element must be disregarded. If the requested path does not exist, return Nobody.
        Specified by:
        getChild in class InternalActorRef
        Parameters:
        names - (undocumented)
        Returns:
        (undocumented)
      • getSingleChild

        public InternalActorRef getSingleChild​(java.lang.String name)
        Method for looking up a single child beneath this actor. Override in order to inject &ldquo;synthetic&rdquo; actor paths like &ldquo;/temp&rdquo;. It is racy if called from the outside.
        Specified by:
        getSingleChild in class ActorRefWithCell
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)
      • isTerminated

        public boolean isTerminated()
        INTERNAL API: Is the actor terminated? If this method returns true, it will never return false again, but if it returns false, you cannot be sure if it's alive still (race condition)
        Specified by:
        isTerminated in class InternalActorRef
        Returns:
        (undocumented)
      • path

        public ActorPath path()
        Description copied from class: ActorRef
        Returns the path for this actor (from this actor up to the root actor).
        Specified by:
        path in class ActorRef
        Returns:
        (undocumented)
      • resume

        public void resume​(java.lang.Throwable causedByFailure)
        Resumes a suspended actor.
        Specified by:
        resume in class InternalActorRef
        Parameters:
        causedByFailure - (undocumented)
      • start

        public void start()
        Starts the actor after initialization.
        Specified by:
        start in class InternalActorRef
      • stop

        public void stop()
        Shuts down the actor and its message queue
        Specified by:
        stop in class InternalActorRef
      • suspend

        public void suspend()
        Suspends the actor so that it will not process messages until resumed. The suspend request is processed asynchronously to the caller of this method as well as to normal message sends: the only ordering guarantee is that message sends done from the same thread after calling this method will not be processed until resumed.
        Specified by:
        suspend in class InternalActorRef
      • writeReplace

        protected java.lang.Object writeReplace()
                                         throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException