https://issues.apache.org/activemq/browse/AMQ-2440 - limiting number of threads for the executor pool

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@920838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-03-09 12:29:23 +00:00
parent 3cbe3f1f92
commit 83604eee1d
1 changed files with 1 additions and 1 deletions

View File

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