|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.dataflow.stream.DataflowStreamReadAdapter groovyx.gpars.dataflow.SyncDataflowStreamReadAdapter
final class SyncDataflowStreamReadAdapter extends DataflowStreamReadAdapter
Provides a special implementation of DataflowStreamReadAdapter, which cooperates with SyncDataflowBroadcast subscription and un-subscription mechanism.
- The type of messages to pass through the streamField Summary | |
---|---|
private boolean |
closed
|
private boolean |
wheneverBoundSet
|
Fields inherited from class DataflowStreamReadAdapter | |
---|---|
asyncHead, eventManager, head |
Constructor Summary | |
SyncDataflowStreamReadAdapter(StreamCore stream)
Creates a new adapter |
Method Summary | |
---|---|
DataflowReadChannel
|
chainWith(PGroup group, groovy.lang.Closure closure)
|
private void
|
checkClosed()
|
void
|
close()
Closes the channel so that it cannot be used any longer |
java.lang.Object
|
getVal()
|
java.lang.Object
|
getVal(long timeout, java.util.concurrent.TimeUnit units)
|
void
|
getValAsync(MessageStream callback)
|
void
|
getValAsync(java.lang.Object attachment, MessageStream callback)
|
boolean
|
isBound()
|
java.util.Iterator
|
iterator()
|
DataflowReadChannel
|
merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
|
DataflowExpression
|
poll()
|
Promise
|
rightShift(groovy.lang.Closure closure)
|
DataflowReadChannel
|
tap(PGroup group, DataflowWriteChannel target)
|
void
|
whenBound(groovy.lang.Closure closure)
|
void
|
whenBound(Pool pool, groovy.lang.Closure closure)
Schedule closure to be executed by pooled actor after data becomes available. |
void
|
whenBound(PGroup group, groovy.lang.Closure closure)
|
void
|
whenBound(MessageStream stream)
|
void
|
wheneverBound(groovy.lang.Closure closure)
|
void
|
wheneverBound(MessageStream stream)
|
Methods inherited from class DataflowStreamReadAdapter | |
---|---|
allUnprocessedDFVs, binaryChoice, binaryChoice, binaryChoice, binaryChoice, binaryChoice, binaryChoice, chainWith, chainWith, chainWith, chainWith, chainWith, chainWith, choice, choice, choice, choice, choice, choice, filter, filter, filter, filter, filter, filter, fireOnMessage, getEventManager, getVal, getVal, getValAsync, getValAsync, into, into, into, into, into, into, isBound, iterator, length, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, moveAsyncHead, moveHead, or, or, poll, rightShift, separate, separate, separate, separate, separate, separate, shouldReportTimeout, split, split, split, split, split, split, split, split, split, split, split, split, tap, tap, tap, tap, tap, tap, then, then, then, toString, whenBound, whenBound, whenBound, whenBound, wheneverBound, wheneverBound |
Field Detail |
---|
private boolean closed
private boolean wheneverBoundSet
Constructor Detail |
---|
SyncDataflowStreamReadAdapter(StreamCore stream)
stream
- The stream to wrap
Method Detail |
---|
@Override public DataflowReadChannel chainWith(PGroup group, groovy.lang.Closure closure)
private void checkClosed()
void close()
@Override public java.lang.Object getVal()
@Override public java.lang.Object getVal(long timeout, java.util.concurrent.TimeUnit units)
@Override public void getValAsync(MessageStream callback)
@Override public void getValAsync(java.lang.Object attachment, MessageStream callback)
@Override public boolean isBound()
@Override public java.util.Iterator iterator()
@Override public DataflowReadChannel merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
@Override public DataflowExpression poll()
@Override public Promise rightShift(groovy.lang.Closure closure)
@Override public DataflowReadChannel tap(PGroup group, DataflowWriteChannel target)
@Override public void whenBound(groovy.lang.Closure closure)
@Override public void whenBound(Pool pool, groovy.lang.Closure closure)
pool
- The thread pool to use for task scheduling for asynchronous message deliveryclosure
- closure to execute when data becomes available. The closure should take at most one argument.
@Override public void whenBound(PGroup group, groovy.lang.Closure closure)
@Override public void whenBound(MessageStream stream)
@Override public void wheneverBound(groovy.lang.Closure closure)
@Override public void wheneverBound(MessageStream stream)
Copyright © 2008–2012 Václav Pech. All Rights Reserved.