Package com.tailf.dp

Class DpWorkerThreadPool

Object
AbstractExecutorService
ThreadPoolExecutor
com.tailf.dp.DpWorkerThreadPool
All Implemented Interfaces:
Executor, ExecutorService

public class DpWorkerThreadPool extends ThreadPoolExecutor
Dp Thread pool of worker thread. These threads are assigned an worker socket and reads requests from these sockets.
  • Constructor Details

    • DpWorkerThreadPool

      public DpWorkerThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
      Constructor for Thread pool.
      Parameters:
      corePoolSize - - initial number of threads in the pool
      maximumPoolSize - - maximal number of threads in the pool
      keepAliveTime - - time in TimeUnit to wait for work, if over corePoolSize
      unit - - The TimeUnit for keepAliveTime
      workQueue - - queue for work waiting to process