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 ofThreadPool
using 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 void
close()
ExecutorService
getExecutor()
int
getMaxThreadCount()
void
setMaxThreadCount(int maxThreadCount)
-
-
-
Constructor Detail
-
FixedThreadPoolWrapper
public FixedThreadPoolWrapper(int threadCount, ThreadFactory factory)
-
-
Method Detail
-
getExecutor
public ExecutorService getExecutor()
- Specified by:
getExecutor
in interfaceThreadPool
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getMaxThreadCount
public int getMaxThreadCount()
- Specified by:
getMaxThreadCount
in interfaceThreadPool
-
setMaxThreadCount
public void setMaxThreadCount(int maxThreadCount)
-
-