org.codehaus.gpars

groovyx.gpars.group
[Java] Class NonDaemonPGroup

java.lang.Object
  groovyx.gpars.group.PGroup
      groovyx.gpars.group.NonDaemonPGroup

public final 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

Delegate.:
@author Vaclav Pech Date: Jun 17, 2009


Field Summary
 
Fields inherited from class PGroup
A_SPLITTER_NEEDS_AN_INPUT_CHANNEL_AND_AT_LEAST_ONE_OUTPUT_CHANNEL_TO_BE_CREATED, threadPool
 
Constructor Summary
NonDaemonPGroup()

NonDaemonPGroup(int poolSize)

 
Method Summary
 
Methods inherited from class PGroup
actor, agent, agent, blockingActor, execute, fairActor, fairAgent, fairAgent, fairMessageHandler, fairReactor, fairStaticMessageHandler, finalize, getPoolSize, getThreadPool, isListAccepting, lazyTask, lazyTask, messageHandler, operator, operator, operator, operator, operator, prioritySelector, prioritySelector, prioritySelector, prioritySelector, reactor, resetDefaultSize, resize, select, select, selector, selector, selector, selector, shallHandle, shutdown, splitter, splitter, staticMessageHandler, task, task, task, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound, whenAllBound
 

Constructor Detail

NonDaemonPGroup

public NonDaemonPGroup()


NonDaemonPGroup

public NonDaemonPGroup(int poolSize)


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.