public interface SelectableChannel<T>
| Modifier and Type | Method and Description |
|---|---|
DataflowExpression<T> |
poll()
Retrieves the value at the head of the buffer.
|
<V> void |
wheneverBound(groovy.lang.Closure<V> closure)
Send all pieces of data bound in the future to the provided stream when it becomes available.
|
void |
wheneverBound(MessageStream stream)
Send all pieces of data bound in the future to the provided stream when it becomes available.
|
<V> void wheneverBound(groovy.lang.Closure<V> closure)
closure - closure to execute when data becomes available. The closure should take at most one argument.void wheneverBound(MessageStream stream)
stream - stream where to send resultDataflowExpression<T> poll() throws java.lang.InterruptedException
java.lang.InterruptedException - If the current thread is interrupted