|
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.impl.ReplyingMessageStream groovyx.gpars.actor.impl.SequentialProcessingActor groovyx.gpars.actor.BlockingActor groovyx.gpars.actor.impl.RunnableBackedBlockingActor
public class RunnableBackedBlockingActor extends BlockingActor
Utility class to implement a blocking actor backed by any Runnable (including Closure)
Nested Class Summary | |
---|---|
private static class |
RunnableBackedBlockingActor.RunnableBackedPooledActorDelegate
|
Field Summary | |
---|---|
private java.lang.Runnable |
action
|
private static long |
serialVersionUID
|
Fields inherited from class BlockingActor | |
---|---|
AN_ACTOR_CAN_ONLY_RECEIVE_ONE_MESSAGE_AT_A_TIME, THE_ACTOR_HAS_BEEN_STOPPED, THE_ACTOR_HAS_NOT_BEEN_STARTED, serialVersionUID |
Fields inherited from class ReplyingMessageStream | |
---|---|
sender, serialVersionUID |
Fields inherited from class MessageStream | |
---|---|
serialVersionUID |
Fields inherited from class WithSerialId | |
---|---|
serialHandle, serialVersionUID |
Constructor Summary | |
RunnableBackedBlockingActor(java.lang.Runnable handler)
|
Method Summary | |
---|---|
protected void
|
act()
|
protected void
|
setAction(java.lang.Runnable handler)
|
Methods inherited from class BlockingActor | |
---|---|
checkStoppedFlags, enhanceAndUnwrap, enhanceReplies, handleStart, receive, receive, receive, receiveImpl, receiveImpl |
Methods inherited from class SequentialProcessingActor | |
---|---|
act, awaitNextMessage, checkStopTerminate, handleTermination, hasBeenStopped, isActive, pollMessage, receive, receive, receive, receiveImpl, receiveImpl, retrieveNextMessage, run, send, setParallelGroup, silentStart, start, stop, sweepNextMessage, takeMessage, takeMessage, terminate, throwIfNeeded, transferQueues, unwrapMessage |
Methods inherited from class ReplyingMessageStream | |
---|---|
getSender, reply, replyIfExists, setSender |
Methods inherited from class MessageStream | |
---|---|
call, getRemoteClass, leftShift, reInterrupt, send, send, send, sendAndWait, sendAndWait, sendAndWait |
Methods inherited from class WithSerialId | |
---|---|
createRemoteHandle, getOrCreateSerialHandle, getRemoteClass, writeReplace |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
private java.lang.Runnable action
private static final long serialVersionUID
Constructor Detail |
---|
public RunnableBackedBlockingActor(java.lang.Runnable handler)
Method Detail |
---|
@SuppressWarnings("rawtypes") @Override protected final void act()
protected final void setAction(java.lang.Runnable handler)
Copyright © 2008–2010 Václav Pech. All Rights Reserved.