May 2017
Intermediate to advanced
414 pages
13h
English
In step three, we create an object, MyControlMessage, which extends the ControlMessage.
ControlMessage is a trait. The message which extends this trait will be handled on priority by ControlAwareMailbox. ControlAwareMailbox maintains two queues to allow messages that extend ControlMessage to be delivered with priority.
In step four, we create an actor which will handle ControlMessage.
In step five, we configure the control-aware-dispatcher in application.conf.
In step six. we create the actor with control-aware-dispatcher.
In step seven, we are able to see in the output that the actor processed ControlMessage first.
Read now
Unlock full access