Aufgabe 2.2

This commit is contained in:
Christoph Stahl 2023-04-17 10:19:31 +02:00
parent 54ae5ef570
commit 5b50e58f9e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class GreeterMain extends AbstractBehavior<GreeterMain.SayHello> {
private Behavior<SayHello> onSayHello(SayHello command) { private Behavior<SayHello> onSayHello(SayHello command) {
//#create-actors //#create-actors
ActorRef<Greeter.Greeted> replyTo = ActorRef<Greeter.Greeted> replyTo =
getContext().spawn(GreeterBot.create(3), command.name); getContext().spawn(GreeterBot.create(6), command.name);
greeter.tell(new Greeter.Greet(command.name, replyTo)); greeter.tell(new Greeter.Greet(command.name, replyTo));
//#create-actors //#create-actors
return this; return this;