Skip to content

Instantly share code, notes, and snippets.

@bantonsson
Last active December 18, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bantonsson/5822096 to your computer and use it in GitHub Desktop.
Save bantonsson/5822096 to your computer and use it in GitHub Desktop.
Akka 2.2 Spotlight Mailbox Requirements
Akka 2.2 Spotlight Mailbox Requirements
bounded-mailbox {
mailbox-type = "akka.dispatch.BoundedMailbox"
mailbox-capacity = 1000
mailbox-push-timeout-time = 10s
}
akka.actor.mailbox.requirements {
"akka.dispatch.BoundedMessageQueueSemantics" = bounded-mailbox
}
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