Last active
December 18, 2015 17:59
-
-
Save bantonsson/5822096 to your computer and use it in GitHub Desktop.
Akka 2.2 Spotlight Mailbox Requirements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Akka 2.2 Spotlight Mailbox Requirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bounded-mailbox { | |
mailbox-type = "akka.dispatch.BoundedMailbox" | |
mailbox-capacity = 1000 | |
mailbox-push-timeout-time = 10s | |
} | |
akka.actor.mailbox.requirements { | |
"akka.dispatch.BoundedMessageQueueSemantics" = bounded-mailbox | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.dispatch.RequiresMessageQueue | |
import akka.dispatch.BoundedMessageQueueSemantics | |
class BoundedActor extends Actor | |
with RequiresMessageQueue[BoundedMessageQueueSemantics] { | |
def receive = { | |
//... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment