public class BlockingThreadPoolExecutorFactory extends Object implements ThreadPoolExecutorFactory<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) |
ExecutorService |
createExecutor(ThreadFactory threadFactory) |
long |
keepAlive() |
int |
maxThreads() |
int |
queueLength() |
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 ExecutorService createExecutor(ThreadFactory threadFactory)
createExecutor
in interface ThreadPoolExecutorFactory<ExecutorService>
public void validate()
ThreadPoolExecutorFactory
validate
in interface ThreadPoolExecutorFactory<ExecutorService>
public static BlockingThreadPoolExecutorFactory create(int maxThreads, int queueSize)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.