Skip to content

Instantly share code, notes, and snippets.

@arschles
Created April 18, 2014 00:28
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 arschles/11018808 to your computer and use it in GitHub Desktop.
Save arschles/11018808 to your computer and use it in GitHub Desktop.
single consumer mailbox example
import akka.actor.{Props, Actor, ActorSystem}
class A extends Actor {
override def receive = {
case other => println(other)
}
}
object Main extends App {
val system = ActorSystem("main")
val props = Props[A].withMailbox("akka.dispatch.SingleConsumerOnlyUnboundedMailbox")
system.actorOf(props)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment