Package akka.actor

Class FunctionRef

    • Method Detail

      • isTerminated

        public boolean isTerminated()
        Description copied from class: InternalActorRef
        INTERNAL API: Returns “true” if the actor is locally known to be terminated, “false” if alive or uncertain.
        Specified by:
        isTerminated in interface MinimalActorRef
        Specified by:
        isTerminated in class InternalActorRef
        Returns:
        (undocumented)
      • isWatching

        public boolean isWatching​(ActorRef actorRef)
        Query whether this FunctionRef is currently watching the given Actor.
        Parameters:
        actorRef - (undocumented)
        Returns:
        (undocumented)
      • sendTerminated

        protected void sendTerminated()
      • unwatch

        public void unwatch​(ActorRef actorRef)
        Have this FunctionRef unwatch the given Actor.

        Upon receiving the Terminated message, unwatch must be called to avoid resource leak, which is different from an ordinary actor.

        Parameters:
        actorRef - (undocumented)
      • watch

        public void watch​(ActorRef actorRef)
        Have this FunctionRef watch the given Actor.

        Upon receiving the Terminated message, unwatch must be called to avoid resource leak, which is different from an ordinary actor.

        Parameters:
        actorRef - (undocumented)