Class ScheduledThreadPoolWrapper

java.lang.Object
org.opendaylight.controller.config.threadpool.util.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 Details

    • ScheduledThreadPoolWrapper

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

    • 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
    • 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