class PollSelectionKey
extends java.nio.channels.spi.AbstractSelectionKey
| Modifier and Type | Field and Description |
|---|---|
private NativeSelectableChannel |
channel |
private int |
index |
private int |
interestOps |
private int |
readyOps |
private PollSelector |
selector |
| Constructor and Description |
|---|
PollSelectionKey(PollSelector selector,
NativeSelectableChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.SelectableChannel |
channel() |
(package private) int |
getFD() |
(package private) int |
getIndex() |
int |
interestOps() |
java.nio.channels.SelectionKey |
interestOps(int ops) |
int |
readyOps() |
(package private) void |
readyOps(int readyOps) |
java.nio.channels.Selector |
selector() |
(package private) void |
setIndex(int index) |
private final PollSelector selector
private final NativeSelectableChannel channel
private int interestOps
private int readyOps
private int index
public PollSelectionKey(PollSelector selector, NativeSelectableChannel channel)
void setIndex(int index)
int getIndex()
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)