More control over Threading model of the server.

This commit is contained in:
marcins78@gmail.com
2013-01-12 00:08:20 +00:00
parent ecb29c1688
commit 2d572571b7

View File

@@ -16,7 +16,7 @@ public class LotroAsyncServer {
ChannelFactory factory =
new NioServerSocketChannelFactory(
Executors.newCachedThreadPool(),
new ThreadPoolExecutor(10, Integer.MAX_VALUE,
new ThreadPoolExecutor(30, Integer.MAX_VALUE,
60L, TimeUnit.SECONDS,
new SynchronousQueue<Runnable>()));