[akka-user] Re: [Java 2.3.x] Default message behaviors?

2014-10-21 Thread Rafał Krzewski
Remember that the the type of receive method is alias for PartialFunction[Any, Unit] and you can compose partial functions using orElse[1] You can defined several message handling function in your base class, and them mix match them in derived classes:

[akka-user] Re: [Java 2.3.x] Default message behaviors?

2014-10-20 Thread Adam
One easy way is to extend UntypedActor, override whatever methods you need with final methods and provide your own callback methods for overriding by sub classes. The slightly messy part of this is that you’ll be forced to provide callback method names with different names (e.g.