February 2018
Intermediate to advanced
552 pages
13h 46m
English
The MessageDispatcher performs the following functionality:
Look at this from https://github.com/akka/akka/blob/v2.5.9/akka-actor/src/main/scala/akka/dispatch/Mailbox.scala.
Look at the following code snippet from Actor's Mailbox component to understand how it deals with messages:
private[akka] abstract class Mailbox(val messageQueue: MessageQueue) extends ForkJoinTask[Unit] with SystemMessageQueue with Runnable { override final def run(): Unit = { processAllSystemMessages() //First, deal with any system messages processMailbox() //Then ...Read now
Unlock full access