this.maximumPoolSize = maximumPoolSize;
this.poolName = name;
tpe = new ThreadPoolExecutor(0,
maximumPoolSize, 2, TimeUnit.MINUTES,
new SynchronousQueue<Runnable>(), new NamedThreadFactory("Worker")) { //$NON-NLS-1$
@Override
protected void afterExecute(Runnable r, Throwable t) {
if (t != null) {
LogManager.logError(LogConstants.CTX_RUNTIME, t, QueryPlugin.Util.getString("WorkerPool.uncaughtException")); //$NON-NLS-1$
}