Class FixedThreadPoolWrapper

java.lang.Object
org.opendaylight.controller.config.threadpool.util.FixedThreadPoolWrapper
All Implemented Interfaces:
Closeable, AutoCloseable, org.opendaylight.controller.config.threadpool.ThreadPool

public class FixedThreadPoolWrapper extends Object implements org.opendaylight.controller.config.threadpool.ThreadPool, Closeable
Implementation of ThreadPool using fixed number of threads wraps ExecutorService.
  • Constructor Details

    • FixedThreadPoolWrapper

      public FixedThreadPoolWrapper(int threadCount, ThreadFactory factory)
  • Method Details

    • getExecutor

      public ExecutorService getExecutor()
      Specified by:
      getExecutor in interface org.opendaylight.controller.config.threadpool.ThreadPool
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getMaxThreadCount

      public int getMaxThreadCount()
      Specified by:
      getMaxThreadCount in interface org.opendaylight.controller.config.threadpool.ThreadPool
    • setMaxThreadCount

      public void setMaxThreadCount(int maxThreadCount)