Cornerstone Components - 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 Classic Framework 4.
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>

Examples

Container Description
Merlin A demonstration component implementation demonstrates the resolution of a ThreadManager and subsequent access to a ThreadPoll against which a Runnable object is launched. Termination of the container before this time will trigger disposal of the component causing the interuption of the subsidiary thread.