Threads
Description
The threads component provides support for the establishment a set of named thread pools. The component implementation can be configured such that multiple thread pools may be defined within which each pool has a minimum and maximum pool criteria and daemon property. Consumer components can access threads from named or default pool using the ThreadManager service interface.
Deployment Facts
Containment | Avalon Framework 4.2.0 |
Lifestyle | singleton |
Lifecycle
Stage | Description |
---|---|
LogEnabled | Logs information concerning created pools during configuration at the DEBUG level. |
Configurable |
Declaration of the thread pools and associated
pool establishment criteria. An example configuration is
presented below.
<configuration> <thread-group> <name>default</name> <is-daemon>false</is-daemon> <max-threads>100</max-threads> <min-threads>20</min-threads> </thread-group> </configuration> |