public class NonBlockingThreadPoolExecutorFactory extends AbstractThreadPoolExecutorFactory<ExecutorService>
ThreadPoolExecutor internally.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_KEEP_ALIVE_MILLIS |
coreThreads, keepAlive, maxThreads, queueLength| Modifier | Constructor and Description |
|---|---|
protected |
NonBlockingThreadPoolExecutorFactory(int maxThreads,
int coreThreads,
int queueLength,
long keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
static NonBlockingThreadPoolExecutorFactory |
create(int maxThreads,
int queueSize) |
ExecutorService |
createExecutor(ThreadFactory threadFactory) |
boolean |
createsNonBlockingThreads() |
String |
toString() |
void |
validate()
Validate parameters for the thread pool executor factory
|
coreThreads, keepAlive, maxThreads, queueLengthpublic static final int DEFAULT_KEEP_ALIVE_MILLIS
protected NonBlockingThreadPoolExecutorFactory(int maxThreads,
int coreThreads,
int queueLength,
long keepAlive)
public boolean createsNonBlockingThreads()
public ExecutorService createExecutor(ThreadFactory threadFactory)
public void validate()
ThreadPoolExecutorFactorypublic static NonBlockingThreadPoolExecutorFactory create(int maxThreads, int queueSize)
Copyright © 2021 JBoss by Red Hat. All rights reserved.