The actor context - the view of the actor cell from the actor.
The actor context - the view of the actor cell from the actor. Exposes contextual information for the actor and the current message.
Not intended for public inheritance/implementation
Defines which messages the Actor can handle, along with the implementation of how the messages should be processed.
Defines which messages the Actor can handle, along with the implementation of
how the messages should be processed. You can build such behavior with the
akka.japi.pf.receivebuilder but it can be implemented in other ways than
using the ReceiveBuilder
since it in the end is just a wrapper around a
Scala PartialFunction
. In Java, you can implement PartialFunction
by
extending AbstractPartialFunction
.
emptyBehavior is a Receive-expression that matches no messages at all, ever.
Java API: compatible with lambda expressions