Class ThreadPoolLoggingExecutor

java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.opendaylight.openflowplugin.impl.util.ThreadPoolLoggingExecutor
All Implemented Interfaces:
Executor, ExecutorService

public class ThreadPoolLoggingExecutor extends ThreadPoolExecutor
threadPoolExecutor implementation logging exceptions thrown by threads.
  • Constructor Details

    • ThreadPoolLoggingExecutor

      public ThreadPoolLoggingExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, String poolName)
      Logging executor.
      Parameters:
      corePoolSize - thread pool size
      maximumPoolSize - maximum pool size
      keepAliveTime - keep alive time
      unit - time unit
      workQueue - task queue
      poolName - thread name prefix
  • Method Details