}
});
}
} finally {
executorService.shutdownNow();
}
}
private BlockingTaskAwareExecutorServiceImpl createExecutorService() {
return new BlockingTaskAwareExecutorServiceImpl(new ThreadPoolExecutor(1, 2, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(1000), new DummyThreadFactory()));