scala - Synchronous event triggering -
i want trigger @ exact same time through message receipt, processes different actors. considering actors possible heavily stacked mailboxes, best method implement this?
i'm assuming want actors read messages @ same time. this, of course not possible (while actor processing message cannot disturbed).
but can make sure trigger message next message take mailbox. can achieved using priority mailbox, example one: http://doc.akka.io/api/akka/snapshot/index.html#akka.dispatch.unboundedstableprioritymailbox
the messages in mailbox sorted priority. if give trigger messages highest priority, processed first.
Comments
Post a Comment