public class FixedThreadPoolWrapper extends Object implements ThreadPool, Closeable
ThreadPool using fixed number of threads wraps
ExecutorService.| Constructor and Description |
|---|
FixedThreadPoolWrapper(int threadCount,
ThreadFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ExecutorService |
getExecutor() |
int |
getMaxThreadCount() |
void |
setMaxThreadCount(int maxThreadCount) |
public FixedThreadPoolWrapper(int threadCount,
ThreadFactory factory)
public ExecutorService getExecutor()
getExecutor in interface ThreadPoolpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic int getMaxThreadCount()
getMaxThreadCount in interface ThreadPoolpublic void setMaxThreadCount(int maxThreadCount)
Copyright © 2019 OpenDaylight. All rights reserved.