|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.dataflow.stream.DataflowStreamWriteAdapter
@SuppressWarnings({"SynchronizedMethod"}) public class DataflowStreamWriteAdapter
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.
- The type of messages to pass through the streamField Summary | |
---|---|
private StreamCore |
head
|
Constructor Summary | |
DataflowStreamWriteAdapter(StreamCore stream)
Creates a new adapter |
Method Summary | |
---|---|
void
|
bind(java.lang.Object value)
|
protected StreamCore
|
getHead()
|
DataflowWriteChannel
|
leftShift(java.lang.Object value)
|
DataflowWriteChannel
|
leftShift(DataflowReadChannel ref)
|
java.lang.String
|
toString()
|
private StreamCore
|
updateHead()
Moves head |
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 StreamCore head
Constructor Detail |
---|
public DataflowStreamWriteAdapter(StreamCore stream)
stream
- The stream to wrap
Method Detail |
---|
@Override public final void bind(java.lang.Object value)
protected final StreamCore getHead()
@Override public final DataflowWriteChannel leftShift(java.lang.Object value)
@Override public final DataflowWriteChannel leftShift(DataflowReadChannel ref)
@Override public java.lang.String toString()
private StreamCore updateHead()
Copyright © 2008–2012 Václav Pech. All Rights Reserved.