use of org.apache.geode.internal.logging.LoggingThreadGroup in project geode by apache.
the class ParallelGatewaySenderQueue method initializeConflationThreadPool.
/**
* Initialize the thread pool, setting the number of threads that is equal to the number of
* processors available to the JVM.
*/
private void initializeConflationThreadPool() {
final LoggingThreadGroup loggingThreadGroup = LoggingThreadGroup.createThreadGroup("WAN Queue Conflation Logger Group", logger);
final ThreadFactory threadFactory = new ThreadFactory() {
public Thread newThread(final Runnable task) {
final Thread thread = new Thread(loggingThreadGroup, task, "WAN Queue Conflation Thread");
thread.setDaemon(true);
return thread;
}
};
conflationExecutor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors(), threadFactory);
}
Aggregations