All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.hippo.threadpool.HippoClientProcessPool Maven / Gradle / Ivy

package com.github.hippo.threadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * client thread pool
 * 
 * @author sl
 *
 */
public enum HippoClientProcessPool {
  INSTANCE;
  private ExecutorService EXECUTORSERVICE =
      Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 3 + 2);

  public ExecutorService getPool() {
    return EXECUTORSERVICE;
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy