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 ThreadPool
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public int getMaxThreadCount()
getMaxThreadCount
in interface ThreadPool
public void setMaxThreadCount(int maxThreadCount)
Copyright © 2019 OpenDaylight. All rights reserved.