Skip to content

Instantly share code, notes, and snippets.

@jiminoc
Created June 7, 2012 22:47
Show Gist options
  • Save jiminoc/2892173 to your computer and use it in GitHub Desktop.
Save jiminoc/2892173 to your computer and use it in GitHub Desktop.
// create a pool of workers who will do the work
val worker = system.actorOf(Props[ZWorker].withRouter(
RoundRobinRouter(nrOfInstances = 10)),
name = "testworker")
val subSocket = system.newSocket(SocketType.Pull, Listener(listener), Connect("tcp://127.0.0.1:1235"), SubscribeAll)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment