Created
April 18, 2014 00:28
-
-
Save arschles/11018808 to your computer and use it in GitHub Desktop.
single consumer mailbox example
This file contains 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.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