mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 18:51:39 +08:00
[Java] add default kill option (#10473)
This commit is contained in:
@@ -14,6 +14,15 @@ public interface BaseActorHandle {
|
||||
*/
|
||||
ActorId getId();
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
default void kill() {
|
||||
Ray.internal().killActor(this, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
||||
Reference in New Issue
Block a user