@ConfigRoot(phase=RUN_TIME) public class ThreadPoolConfig extends Object
Modifier and Type | Field and Description |
---|---|
int |
coreThreads
The core thread pool size.
|
float |
growthResistance
The executor growth resistance.
|
Duration |
keepAliveTime
The amount of time in milliseconds a thread will stay alive with no work.
|
int |
maxThreads
The maximum number of threads.
|
int |
queueSize
The queue size.
|
Duration |
shutdownTimeout
The shutdown timeout in milliseconds.
|
Constructor and Description |
---|
ThreadPoolConfig() |
@ConfigItem(defaultValue="1") public int coreThreads
@ConfigItem(defaultValue="0") public int maxThreads
@ConfigItem(defaultValue="0") public int queueSize
@ConfigItem(defaultValue="0") public float growthResistance
0.0f
implies that
threads beyond the core size should be created as aggressively as threads within it; a value of 1.0f
implies that threads beyond the core size should never be created.@ConfigItem(defaultValue="PT60S") public Duration shutdownTimeout
@ConfigItem(defaultValue="PT1S") public Duration keepAliveTime
Copyright © 2019 JBoss by Red Hat. All rights reserved.