public final class SelectCallback<T>
extends groovy.lang.Closure
| Modifier and Type | Field and Description |
|---|---|
private SelectableChannel<? extends T> |
channel |
private int |
index |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
SelectCallback(java.lang.Object owner,
int index,
SelectableChannel<? extends T> channel) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(java.lang.Object[] args)
Invoked by the channel when a value has been bound to it and is available for consumption
|
asWritable, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampolineprivate static final long serialVersionUID
private final int index
private final SelectableChannel<? extends T> channel
public SelectCallback(java.lang.Object owner,
int index,
SelectableChannel<? extends T> channel)
owner - The SelectBase instance to notifyindex - The index of the channel this SelectCallback instance representschannel - The channel represented by this SelectCallback instancepublic java.lang.Object call(java.lang.Object[] args)
call in class groovy.lang.Closureargs - Holds the value, but we do not work with the value here