class KQSelectionKey
extends java.nio.channels.spi.AbstractSelectionKey
| Modifier and Type | Field and Description |
|---|---|
private NativeSelectableChannel |
channel |
private int |
interestOps |
private int |
readyOps |
private KQSelector |
selector |
| Constructor and Description |
|---|
KQSelectionKey(KQSelector selector,
NativeSelectableChannel channel,
int ops) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.SelectableChannel |
channel() |
(package private) int |
getFD() |
int |
interestOps() |
java.nio.channels.SelectionKey |
interestOps(int ops) |
int |
readyOps() |
(package private) void |
readyOps(int readyOps) |
java.nio.channels.Selector |
selector() |
private final KQSelector selector
private final NativeSelectableChannel channel
private int interestOps
private int readyOps
public KQSelectionKey(KQSelector selector, NativeSelectableChannel channel, int ops)
int getFD()
public java.nio.channels.SelectableChannel channel()
channel in class java.nio.channels.SelectionKeypublic java.nio.channels.Selector selector()
selector in class java.nio.channels.SelectionKeypublic int interestOps()
interestOps in class java.nio.channels.SelectionKeypublic java.nio.channels.SelectionKey interestOps(int ops)
interestOps in class java.nio.channels.SelectionKeypublic int readyOps()
readyOps in class java.nio.channels.SelectionKeyvoid readyOps(int readyOps)