Skip to content

Instantly share code, notes, and snippets.

@nraychaudhuri
Created February 7, 2014 19:12
Show Gist options
  • Select an option

  • Save nraychaudhuri/8869701 to your computer and use it in GitHub Desktop.

Select an option

Save nraychaudhuri/8869701 to your computer and use it in GitHub Desktop.
Naming Netty threads
val factory = new org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory(
new NioServerBossPool(Executors.newCachedThreadPool(NamedThreadFactory("play-netty-boss")), 1, ThreadNameDeterminer.CURRENT),
new NioWorkerPool(Executors.newCachedThreadPool(NamedThreadFactory("play-netty-worker")),
Runtime.getRuntime.availableProcessors * 2,
ThreadNameDeterminer.CURRENT)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment