Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions for the code example on page 112 #5

Open
clasnake opened this issue Jan 1, 2017 · 0 comments
Open

Questions for the code example on page 112 #5

clasnake opened this issue Jan 1, 2017 · 0 comments

Comments

@clasnake
Copy link

clasnake commented Jan 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant