Class LocalActorRef

    • Method Detail

      • 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
        names - (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
        name - (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
      • resume

        public void resume​(java.lang.Throwable causedByFailure)
        Resumes a suspended actor.
        Specified by:
        resume in class InternalActorRef
        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()