|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.dataflow.stream.DataFlowStreamWriteAdapter<T>
T
- The type of messages to pass through the streampublic class DataFlowStreamWriteAdapter<T>
Adapts a DataFlowStream to accommodate for the DataFlowWriteChannel interface. It also synchronizes all changes to the underlying stream allowing multiple threads accessing the stream concurrently.
Field Summary | |
---|---|
private DataFlowStream<T> |
head
|
Constructor Summary | |
---|---|
DataFlowStreamWriteAdapter(DataFlowStream<T> stream)
Creates a new adapter |
Method Summary | |
---|---|
void |
bind(T value)
Assigns a value to the variable. |
protected DataFlowStream<T> |
getHead()
|
DataFlowWriteChannel<T> |
leftShift(DataFlowReadChannel<T> ref)
Assigns a value from one DataFlowVariable instance to this variable. |
DataFlowWriteChannel<T> |
leftShift(T value)
Assigns a value to the variable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private DataFlowStream<T> head
Constructor Detail |
---|
public DataFlowStreamWriteAdapter(DataFlowStream<T> stream)
stream
- The stream to wrapMethod Detail |
---|
public final DataFlowWriteChannel<T> leftShift(T value)
DataFlowWriteChannel
leftShift
in interface DataFlowWriteChannel<T>
value
- The value to assign
public final DataFlowWriteChannel<T> leftShift(DataFlowReadChannel<T> ref)
DataFlowWriteChannel
leftShift
in interface DataFlowWriteChannel<T>
ref
- The DataFlowVariable instance the value of which to bind
public final void bind(T value)
DataFlowWriteChannel
bind
in interface DataFlowWriteChannel<T>
value
- The value to assignpublic java.lang.String toString()
toString
in class java.lang.Object
protected final DataFlowStream<T> getHead()
|
Copyright © 2008–2010 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |