Provides logical grouping for actors, agents and dataflow tasks and operators. Each group has an underlying thread pool, which will perform actions on behalf of the users belonging to the group. Actors created through the DefaultPGroup.actor() method will automatically belong to the group through which they were created, just like agents created through the agent() or fairAgent() methods or dataflow tasks and operators created through the task() or operator() methods. Uses a pool of non-daemon threads. The DefaultPGroup class implements the Pool interface through
Fields inherited from class | Fields |
---|---|
class PGroup |
A_SPLITTER_NEEDS_AN_INPUT_CHANNEL_AND_AT_LEAST_ONE_OUTPUT_CHANNEL_TO_BE_CREATED, threadPool |
Constructor and description |
---|
NonDaemonPGroup
() Creates a group for actors, agents, tasks and operators. |
NonDaemonPGroup
(int poolSize) Creates a group for actors, agents, tasks and operators. |
Creates a group for actors, agents, tasks and operators. The actors will share a common non-daemon thread pool.
Creates a group for actors, agents, tasks and operators. The actors will share a common non-daemon thread pool.
poolSize
- The initial size of the underlying thread poolCopyright © 2008–2014 Václav Pech. All Rights Reserved.