groovyx.gpars.dataflow
Class SingleRunActor
java.lang.Object
groovyx.gpars.serial.WithSerialId
groovyx.gpars.actor.impl.MessageStream
groovyx.gpars.actor.Actor
groovyx.gpars.actor.impl.ReplyingMessageStream
groovyx.gpars.actor.impl.SequentialProcessingActor
groovyx.gpars.actor.AbstractPooledActor
groovyx.gpars.dataflow.SingleRunActor
class SingleRunActor
extends AbstractPooledActor
An actor representing a dataflow thread. Runs the supplied block of code inside the act() actor method once.
- Authors:
- Vaclav Pech, Dierk Koenig
Date: Jun 5, 2009
Fields inherited from class SequentialProcessingActor
|
S_ACTIVE_MASK, S_FINISHED_MASK, S_FINISHING_MASK, S_NOT_STARTED, S_RUNNING, S_STOPPED, S_STOPPING, S_STOP_TERMINATE_MASK, S_TERMINATED, S_TERMINATING, afterLoopCode, loopCode, loopCondition, stopFlag, stopFlagUpdater |
Constructor Summary |
SingleRunActor()
Sets the default Dataflow Concurrency actor group on the actor.
|
Method Summary |
protected void
|
act()
|
void
|
setBody(groovy.lang.Closure body)
|
Methods inherited from class SequentialProcessingActor
|
checkStopTerminate, handleTermination, hasBeenStopped, isActive, loop, loop, loop, loop, loop, pollMessage, react, react, react, react, receive, receive, receive, receiveImpl, receiveImpl, run, runReaction, scheduleLoop, send, setParallelGroup, silentStart, start, stop, sweepNextMessage, takeMessage, takeMessage, terminate |
Methods inherited from class Actor
|
createActorMessage, createRemoteHandle, deregisterCurrentActorWithThread, getJoinLatch, getParallelGroup, handleException, handleInterrupt, handleStart, handleTermination, handleTimeout, hasBeenStopped, isActive, isActorThread, join, join, join, join, onStop, registerCurrentActorWithThread, sendAndContinue, setParallelGroup, silentStart, start, stop, sweepNextMessage, sweepQueue, terminate, threadBoundActor |
body
private groovy.lang.Closure body
-
serialVersionUID
private static final long serialVersionUID
-
SingleRunActor
public SingleRunActor()
- Sets the default Dataflow Concurrency actor group on the actor.
act
@Override
protected void act()
-
setBody
public void setBody(groovy.lang.Closure body)
-
Copyright © 2008–2010 Václav Pech. All Rights Reserved.