Update ActorHierarchyExperiments.java (#30075)

Update SupervisedActor example to fit tutorial 1 docs
This commit is contained in:
刘冲 2021-03-15 22:48:02 +08:00 committed by GitHub
parent 1ff2950ab6
commit c24759feaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,12 +152,12 @@ class SupervisedActor extends AbstractBehavior<String> {
} }
private Behavior<String> preRestart() { private Behavior<String> preRestart() {
System.out.println("second will be restarted"); System.out.println("supervised will be restarted");
return this; return this;
} }
private Behavior<String> postStop() { private Behavior<String> postStop() {
System.out.println("second stopped"); System.out.println("supervised stopped");
return this; return this;
} }
} }