Methods Summary |
---|
public java.nio.channels.SelectableChannel | channel()
return channel;
|
private void | checkValid()
if (!isValid()) {
throw new CancelledKeyException();
}
|
public int | interestOps()
checkValid();
synchronized (selector.keysLock) {
return interestOps;
}
|
public java.nio.channels.SelectionKey | interestOps(int operations)
checkValid();
if ((operations & ~(channel().validOps())) != 0) {
throw new IllegalArgumentException();
}
synchronized (selector.keysLock) {
interestOps = operations;
}
return this;
|
public int | readyOps()
checkValid();
return readyOps;
|
public java.nio.channels.Selector | selector()
return selector;
|
void | setReadyOps(int readyOps)
this.readyOps = readyOps;
|