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 ofScheduledThreadPoolwrapsScheduledExecutorService.
-
-
Constructor Summary
Constructors Constructor Description ScheduledThreadPoolWrapper(int threadCount, ThreadFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ScheduledExecutorServicegetExecutor()intgetMaxThreadCount()
-
-
-
Constructor Detail
-
ScheduledThreadPoolWrapper
public ScheduledThreadPoolWrapper(int threadCount, ThreadFactory factory)
-
-
Method Detail
-
getExecutor
public ScheduledExecutorService getExecutor()
- Specified by:
getExecutorin interfaceorg.opendaylight.controller.config.threadpool.ScheduledThreadPool- Specified by:
getExecutorin interfaceorg.opendaylight.controller.config.threadpool.ThreadPool
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getMaxThreadCount
public int getMaxThreadCount()
- Specified by:
getMaxThreadCountin interfaceorg.opendaylight.controller.config.threadpool.ThreadPool
-
-