Interface ExecutorServiceFactory

All Known Implementing Classes:
JDKExecutorServiceFactory

public interface ExecutorServiceFactory
Factory of ExecutorServices
  • Method Details

    • newFixedThreadPool

      ExecutorService newFixedThreadPool(int threadCount)
      Creates an executor service backed by a fixed number of threads
      Parameters:
      threadCount - the thread count
      Returns:
      the executor service
    • newFixedThreadPool

      ExecutorService newFixedThreadPool(int threadCount, ThreadFactory threadFactory)
      Creates an executor service backed by a fixed number of threads
      Parameters:
      threadCount - the thread count
      threadFactory - the thread factory
      Returns:
      the executor service
    • newCachedThreadPool

      ExecutorService newCachedThreadPool()
      Creates an executor service backed by a cached thread pool
      Returns:
      the executor service
    • newCachedThreadPool

      ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
      Creates an executor service backed by a cached thread pool
      Parameters:
      threadFactory - the thread factory
      Returns:
      the executor service