public class BlockingThreadPoolExecutorFactory extends java.lang.Object implements ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>
| Constructor and Description |
|---|
BlockingThreadPoolExecutorFactory(int maxThreads,
int coreThreads,
int queueLength,
long keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
int |
coreThreads() |
static BlockingThreadPoolExecutorFactory |
create(int maxThreads,
int queueSize) |
java.util.concurrent.ExecutorService |
createExecutor(java.util.concurrent.ThreadFactory threadFactory) |
long |
keepAlive() |
int |
maxThreads() |
int |
queueLength() |
java.lang.String |
toString() |
void |
validate()
Validate parameters for the thread pool executor factory
|
public BlockingThreadPoolExecutorFactory(int maxThreads,
int coreThreads,
int queueLength,
long keepAlive)
public int maxThreads()
public int coreThreads()
public int queueLength()
public long keepAlive()
public java.util.concurrent.ExecutorService createExecutor(java.util.concurrent.ThreadFactory threadFactory)
createExecutor in interface ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>public void validate()
ThreadPoolExecutorFactoryvalidate in interface ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>public java.lang.String toString()
toString in class java.lang.Objectpublic static BlockingThreadPoolExecutorFactory create(int maxThreads, int queueSize)