java.nio.channels.spi
public abstract class AbstractSelectionKey extends SelectionKey
OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE
Modifier | Constructor and Description |
---|---|
protected |
AbstractSelectionKey()
Initializes the key.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels this key.
|
boolean |
isValid()
Tells whether this key is valid or not.
|
attach, attachment, channel, interestOps, interestOps, isAcceptable, isConnectable, isReadable, isWritable, readyOps, selector
protected AbstractSelectionKey()
public final void cancel()
cancel
in class SelectionKey
public final boolean isValid()
isValid
in class SelectionKey