public ExecutorServices(EPServiceProviderSPI spi, Map<String, Executor> workQueue)
{
this.services = new HashMap<String, ExecutorService>();
for (Map.Entry<String, Executor> entry : workQueue.entrySet()) {
Executor queue = entry.getValue();
if (queue.getNumThreads() <= 0) {
continue;
}
LinkedBlockingQueue<Runnable> runnableQueue = new LinkedBlockingQueue<Runnable>();
ExecutorService service = new ThreadPoolExecutor(queue.getNumThreads(), queue.getNumThreads(), 1000, TimeUnit.SECONDS, runnableQueue);
services.put(entry.getKey(), service);
}
try
{