Class ScheduledThreadPoolWrapper

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.opendaylight.controller.config.threadpool.ScheduledThreadPool, org.opendaylight.controller.config.threadpool.ThreadPool

    public class ScheduledThreadPoolWrapper
    extends Object
    implements org.opendaylight.controller.config.threadpool.ScheduledThreadPool, Closeable
    Implementation of ScheduledThreadPool wraps ScheduledExecutorService.
    • Constructor Detail

      • ScheduledThreadPoolWrapper

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

      • getExecutor

        public ScheduledExecutorService getExecutor()
        Specified by:
        getExecutor in interface org.opendaylight.controller.config.threadpool.ScheduledThreadPool
        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