Package io.ray.api

Interface BaseActorHandle

All Known Subinterfaces:
ActorHandle<A>, PyActorHandle

public interface BaseActorHandle
A handle to an actor.

A handle can be used to invoke a remote actor method.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the id of this actor.
    default void
    Kill the actor immediately.
    default void
    kill​(boolean noRestart)
    Kill the actor immediately.
  • Method Details

    • getId

      ActorId getId()
      Returns the id of this actor.
    • kill

      default void kill()
      Kill the actor immediately. This will cause any outstanding tasks submitted to the actor to fail and the actor to exit in the same way as if it crashed. The killed actor will not be restarted anymore.
    • kill

      default void kill(boolean noRestart)
      Kill the actor immediately. This will cause any outstanding tasks submitted to the actor to fail and the actor to exit in the same way as if it crashed.
      Parameters:
      noRestart - If set to true, the killed actor will not be restarted anymore.