Interface ThreadPoolConfig
- All Superinterfaces:
Config
Thread Pool Configuration.
This is the configuration that defines the properties of a Thread Pool.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the definition name.int
Returns the queue size.int
getSize()
Returns the pool size.void
setQueueSize
(int size) Sets the queue size.void
setSize
(int size) Sets the pool size.
-
Method Details
-
getName
String getName()Gets the definition name.- Returns:
- thread pool definition name
-
setSize
Sets the pool size.If this is not specified, a default of 5 is used.
- Parameters:
size
- thread pool size- Throws:
ConfigException
- if unable to set the property
-
getSize
int getSize()Returns the pool size.- Returns:
- the pool size
-
setQueueSize
Sets the queue size.The queue size. When the max-size is reached then tasks will be queued. If the value is zero then the queue is unbounded. If not 0 then the value must be at least 10.
If this is not specified then 2000 is assumed.
- Parameters:
size
- the queue size- Throws:
ConfigException
- if unable to set the property
-
getQueueSize
int getQueueSize()Returns the queue size.- Returns:
- the queue size
-