Class FixedThreadPoolWrapper
- java.lang.Object
 - 
- org.opendaylight.controller.config.threadpool.util.FixedThreadPoolWrapper
 
 
- 
- All Implemented Interfaces:
 Closeable,AutoCloseable,ThreadPool
public class FixedThreadPoolWrapper extends Object implements ThreadPool, Closeable
Implementation ofThreadPoolusing fixed number of threads wrapsExecutorService. 
- 
- 
Constructor Summary
Constructors Constructor Description FixedThreadPoolWrapper(int threadCount, ThreadFactory factory) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ExecutorServicegetExecutor()intgetMaxThreadCount()voidsetMaxThreadCount(int maxThreadCount) 
 - 
 
- 
- 
Constructor Detail
- 
FixedThreadPoolWrapper
public FixedThreadPoolWrapper(int threadCount, ThreadFactory factory) 
 - 
 
- 
Method Detail
- 
getExecutor
public ExecutorService getExecutor()
- Specified by:
 getExecutorin interfaceThreadPool
 
- 
close
public void close()
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable
 
- 
getMaxThreadCount
public int getMaxThreadCount()
- Specified by:
 getMaxThreadCountin interfaceThreadPool
 
- 
setMaxThreadCount
public void setMaxThreadCount(int maxThreadCount)
 
 - 
 
 -