Update ActorHierarchyExperiments.java (#30075)
Update SupervisedActor example to fit tutorial 1 docs
This commit is contained in:
parent
1ff2950ab6
commit
c24759feaa
1 changed files with 2 additions and 2 deletions
|
|
@ -152,12 +152,12 @@ class SupervisedActor extends AbstractBehavior<String> {
|
|||
}
|
||||
|
||||
private Behavior<String> preRestart() {
|
||||
System.out.println("second will be restarted");
|
||||
System.out.println("supervised will be restarted");
|
||||
return this;
|
||||
}
|
||||
|
||||
private Behavior<String> postStop() {
|
||||
System.out.println("second stopped");
|
||||
System.out.println("supervised stopped");
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue