groovyx.gpars.dataflow
Class DataflowExpression.WaitingThread
java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
groovyx.gpars.dataflow.DataflowExpression.WaitingThread
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- DataflowExpression<T>
private static final class DataflowExpression.WaitingThread
- extends java.util.concurrent.atomic.AtomicBoolean
A logical representation of a synchronous or asynchronous request to read the value once it is bound.
Methods inherited from class java.util.concurrent.atomic.AtomicBoolean |
compareAndSet, get, getAndSet, lazySet, set, toString, weakCompareAndSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
thread
private final java.lang.Thread thread
previous
private volatile DataflowExpression.WaitingThread previous
callback
private final MessageStream callback
attachment
private final java.lang.Object attachment
DataflowExpression.WaitingThread
private DataflowExpression.WaitingThread(java.lang.Thread thread,
DataflowExpression.WaitingThread previous,
java.lang.Object attachment,
MessageStream callback)
- Creates a representation of the request to read the value once it is bound
- Parameters:
thread
- The physical thread of the request, which will be suspendedprevious
- The previous request in the chain of requestsattachment
- An arbitrary object closely identifying the request for the callercallback
- An actor or operator to send a message to once a value is bound