|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.serial.WithSerialId groovyx.gpars.actor.impl.MessageStream groovyx.gpars.actor.Actor groovyx.gpars.actor.AbstractLoopingActor groovyx.gpars.activeobject.InternalActor
@SuppressWarnings({"CallToStringEquals"}) public final class InternalActor extends AbstractLoopingActor
Backs active objects and invokes all object's active methods.
Field Summary | |
---|---|
static java.lang.String |
METHOD_NAME_PREFIX
|
private static java.lang.Object[] |
No_ARGS
|
private static long |
serialVersionUID
|
Fields inherited from class AbstractLoopingActor | |
---|---|
core, currentSender, currentTimerTask, serialVersionUID, stoppedFlag, terminatedFlag, terminatingFlag, timeoutCounter |
Fields inherited from class MessageStream | |
---|---|
serialVersionUID |
Fields inherited from class WithSerialId | |
---|---|
serialHandle, serialVersionUID |
Constructor Summary | |
InternalActor()
Just like DynamicDispatchActor, except that the actual method dispatch is static through the closure passed to the initialize() method. |
Method Summary | |
---|---|
static InternalActor
|
create(java.lang.Object groupId)
|
private static java.lang.Object
|
handleCurrentMessage(java.lang.Object msg)
|
void
|
onMessage(java.lang.Object[] msg)
Handles incoming messages |
DataflowVariable
|
submit(java.lang.Object... args)
A DataflowVariable is passed to the actor, which will bind it once the result is known. |
java.lang.Object
|
submitAndWait(java.lang.Object... args)
A DataflowVariable is passed to the actor, which will bind it once the result is known. |
Methods inherited from class AbstractLoopingActor | |
---|---|
cancelCurrentTimeoutTask, doStart, getCore, getSender, hasBeenStopped, initialize, isActive, isFair, makeFair, reply, replyIfExists, runEnhancedWithoutRepliesOnMessages, send, setParallelGroup, setTimeout, silentStart, start, stop, sweepNextMessage, terminate |
Methods inherited from class MessageStream | |
---|---|
call, getRemoteClass, leftShift, reInterrupt, send, send, send, sendAndWait, sendAndWait, sendAndWait |
Methods inherited from class WithSerialId | |
---|---|
createRemoteHandle, getOrCreateSerialHandle, getRemoteClass, writeReplace |
Field Detail |
---|
public static final java.lang.String METHOD_NAME_PREFIX
private static final java.lang.Object[] No_ARGS
private static final long serialVersionUID
Constructor Detail |
---|
public InternalActor()
Method Detail |
---|
public static InternalActor create(java.lang.Object groupId)
@SuppressWarnings({"unchecked"}) private static java.lang.Object handleCurrentMessage(java.lang.Object msg)
@SuppressWarnings({"unchecked", "MethodMayBeStatic"}) public void onMessage(java.lang.Object[] msg)
msg
- The message representing the requested method call
DataflowVariable submit(java.lang.Object... args)
args
- The method parameters
@SuppressWarnings({"ProhibitedExceptionDeclared"}) java.lang.Object submitAndWait(java.lang.Object... args)
args
- The method parameters
Copyright © 2008–2012 Václav Pech. All Rights Reserved.