public abstract class GuardedSelectRequest<T> extends java.lang.Object implements SelectRequest<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Boolean> |
mask |
Constructor and Description |
---|
GuardedSelectRequest(java.util.List<java.lang.Boolean> mask) |
Modifier and Type | Method and Description |
---|---|
boolean |
matchesMask(int index)
Detects, whether the channel at the given index is guarded or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valueFound
public GuardedSelectRequest(java.util.List<java.lang.Boolean> mask)
mask
- The list of boolean flags indicating which position should be matched against. All indexes match against a null maskpublic boolean matchesMask(int index)
matchesMask
in interface SelectRequest<T>
index
- The index of the input channel to check for guard