Should have any effect either way given the construtor args but user reports that its an issue in some environments.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1141331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-06-29 23:41:30 +00:00
parent 4fcc1f7192
commit 0bed411301
1 changed files with 6 additions and 4 deletions

View File

@ -376,6 +376,8 @@ public class InactivityMonitor extends TransportFilter {
};
private ThreadPoolExecutor createExecutor() {
return new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), factory);
ThreadPoolExecutor exec = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), factory);
exec.allowCoreThreadTimeOut(true);
return exec;
}
}