KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using Akka from Java. According to documentation, context.become() takes Procedure<Object> as a parameter. In fact, it expects PartialFunction<Object, BoxedUnit> which appears to be something auto-generated with lot's of methods with strange names. What is the right way of using become() from Java? PS i'm using Akka 2.0.3 Update: Looks like that there are two methods: context() and getContext(). The first one returns ActorContext, and the second one returns UntypedActorContext. UntypedActorContext has become(Procedure<Object>) .
Tags (comma-separated)
Save Edits
Cancel