|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.group.PGroup
groovyx.gpars.group.NonDaemonPGroup
class NonDaemonPGroup extends PGroup
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
Constructor Summary | |
NonDaemonPGroup()
Creates a group for actors, agents, tasks and operators. |
|
NonDaemonPGroup(int poolSize)
Creates a group for actors, agents, tasks and operators. |
Method Summary |
---|
Methods inherited from class PGroup | |
---|---|
actor, agent, agent, fairActor, fairAgent, fairAgent, fairMessageHandler, fairReactor, finalize, getThreadPool, messageHandler, oldActor, operator, operator, operator, operator, operator, prioritySelector, prioritySelector, prioritySelector, prioritySelector, reactor, select, select, selector, selector, selector, selector, splitter, splitter, task, task, task |
Constructor Detail |
---|
public NonDaemonPGroup()
public NonDaemonPGroup(int poolSize)
poolSize
- The initial size of the underlying thread pool
Copyright © 2008–2010 Václav Pech. All Rights Reserved.