jgroupsThreadPool.setRejectedExecutionHandler(new ThreadPoolExecutor.DiscardPolicy());
jgroupsThreadPool.setThreadFactory(new CustomThreadFactory("jgroups") {
@Override
protected Thread allocateThread(ThreadGroup group, Runnable target, String name) {
return new CommThread(group, target, name);
}
});
ThreadPoolExecutorMonitor.register("jgroups", jgroupsThreadPool);