Package jnr.enxio.channels
Class KQSelectionKey
- java.lang.Object
-
- java.nio.channels.SelectionKey
-
- java.nio.channels.spi.AbstractSelectionKey
-
- jnr.enxio.channels.KQSelectionKey
-
class KQSelectionKey extends java.nio.channels.spi.AbstractSelectionKey
-
-
Field Summary
Fields Modifier and Type Field Description private NativeSelectableChannel
channel
private int
interestOps
private int
readyOps
private KQSelector
selector
-
Constructor Summary
Constructors Constructor Description KQSelectionKey(KQSelector selector, NativeSelectableChannel channel, int ops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
selector
private final KQSelector selector
-
channel
private final NativeSelectableChannel channel
-
interestOps
private int interestOps
-
readyOps
private int readyOps
-
-
Constructor Detail
-
KQSelectionKey
public KQSelectionKey(KQSelector selector, NativeSelectableChannel channel, int ops)
-
-
Method Detail
-
getFD
int getFD()
-
channel
public java.nio.channels.SelectableChannel channel()
- Specified by:
channel
in classjava.nio.channels.SelectionKey
-
selector
public java.nio.channels.Selector selector()
- Specified by:
selector
in classjava.nio.channels.SelectionKey
-
interestOps
public int interestOps()
- Specified by:
interestOps
in classjava.nio.channels.SelectionKey
-
interestOps
public java.nio.channels.SelectionKey interestOps(int ops)
- Specified by:
interestOps
in classjava.nio.channels.SelectionKey
-
readyOps
public int readyOps()
- Specified by:
readyOps
in classjava.nio.channels.SelectionKey
-
readyOps
void readyOps(int readyOps)
-
-