* of {@code ExecutorService}.
* @return {@link ThreadPoolExecutor}
*/
public ExecutorService getExecutorService(int maxThreads) {
if (maxThreads > 0) {
return Executors.newFixedThreadPool(maxThreads, new DefaultThreadFactory(threadName));
} else {
return Executors.newCachedThreadPool(new DefaultThreadFactory(threadName));
}
}