learning-akka
learning-akka copied to clipboard
Questions for the code example on page 112
Hey, I just went through this and for the code example on page 112:
public void postStart() {
self().ask(new Connect(), null);
}
override def postStart = self ! connect
Shouldn't it be:
public void preStart() {
self().tell(new Connect(), null);
}
override def preStart = self ! connect
I don't find postStart as an akka method that we can override. And the java code should use tell instead of ask. Is it a typo or am I missing anything?
Thanks