git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@920881 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-03-09 14:05:11 +00:00
parent 83604eee1d
commit 7ee5cdd276
1 changed files with 2 additions and 2 deletions

View File

@ -42,10 +42,10 @@ public final class SelectorManager {
private Executor selectorExecutor = createDefaultExecutor(); private Executor selectorExecutor = createDefaultExecutor();
private Executor channelExecutor = selectorExecutor; private Executor channelExecutor = selectorExecutor;
private LinkedList<SelectorWorker> freeWorkers = new LinkedList<SelectorWorker>(); private LinkedList<SelectorWorker> freeWorkers = new LinkedList<SelectorWorker>();
private int maxChannelsPerWorker = 64; private int maxChannelsPerWorker = 1024;
protected ExecutorService createDefaultExecutor() { protected ExecutorService createDefaultExecutor() {
ThreadPoolExecutor rc = new ThreadPoolExecutor(0, 200, 1, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), new ThreadFactory() { ThreadPoolExecutor rc = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.MILLISECONDS, new SynchronousQueue<Runnable>(), new ThreadFactory() {
public Thread newThread(Runnable runnable) { public Thread newThread(Runnable runnable) {
return new Thread(runnable, "ActiveMQ NIO Worker"); return new Thread(runnable, "ActiveMQ NIO Worker");
} }