mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 09:12:56 +08:00
[Java] Support wasCurrentActorRestarted in actor task. (#13120)
* Remove check. * Add test * fix lint * lint * Fix spotless lint * Address comments. * Fix lint Co-authored-by: Qing Wang <jovany.wq@antgroup.com>
This commit is contained in:
@@ -17,11 +17,7 @@ public interface RuntimeContext {
|
||||
*/
|
||||
ActorId getCurrentActorId();
|
||||
|
||||
/**
|
||||
* Returns true if the current actor was restarted, false if it's created for the first time.
|
||||
*
|
||||
* <p>Note, this method should only be called from an actor creation task.
|
||||
*/
|
||||
/** Returns true if the current actor was restarted, otherwise false. */
|
||||
boolean wasCurrentActorRestarted();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user