Interface ThreadPoolConfig
- All Superinterfaces:
- Config
Thread Pool Configuration.
 
This is the configuration that defines the properties of a Thread Pool.
- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Gets the definition name.intReturns the queue size.intgetSize()Returns the pool size.voidsetQueueSize(int size) Sets the queue size.voidsetSize(int size) Sets the pool size.
- 
Method Details- 
getNameString getName()Gets the definition name.- Returns:
- thread pool definition name
 
- 
setSizeSets 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
 
- 
getSizeint getSize()Returns the pool size.- Returns:
- the pool size
 
- 
setQueueSizeSets 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
 
- 
getQueueSizeint getQueueSize()Returns the queue size.- Returns:
- the queue size
 
 
-