Defines a trait supporting extending an Akka Actor's receive() via supreclasses and stackable traits without losing the extended behavior.
An object to import to make the askretry extension available on ActorRef
The enveloping package creates an envelope that carries a great deal more information than just the sender of the message.
The enveloping package creates an envelope that carries a great deal more information than just the sender of the message. The envelope contains the following:
Importantly, all of this information to be supplied without burdening the code that sends the message. However, instead of
the regular Akka tell
and !
operations, programmers must use the send
operation to wrap the message in a envelope.
someActor send SomeMessage( "Hello there, Mr. Actor" )
Defines a trait supporting extending an Akka Actor's receive() via supreclasses and stackable traits without losing the extended behavior. ActorStack implementations should wrap the r: Receive with their behavior, and call
in order to not hide upstream stack behavior.
Concrete Actors must wrap all Receive expressions with around(...) in order to retain the stacked extension; e.g.,
ActorStack does not override any other Actor behavior.