Class 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 Detail

      • FixedThreadPoolWrapper

        public FixedThreadPoolWrapper​(int threadCount,
                                      ThreadFactory factory)
    • Method Detail

      • getExecutor

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

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

        public void setMaxThreadCount​(int maxThreadCount)