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 NativeSelectableChannelchannelprivate intinterestOpsprivate intreadyOpsprivate KQSelectorselector
-
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.SelectableChannelchannel()(package private) intgetFD()intinterestOps()java.nio.channels.SelectionKeyinterestOps(int ops)intreadyOps()(package private) voidreadyOps(int readyOps)java.nio.channels.Selectorselector()
-
-
-
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:
channelin classjava.nio.channels.SelectionKey
-
selector
public java.nio.channels.Selector selector()
- Specified by:
selectorin classjava.nio.channels.SelectionKey
-
interestOps
public int interestOps()
- Specified by:
interestOpsin classjava.nio.channels.SelectionKey
-
interestOps
public java.nio.channels.SelectionKey interestOps(int ops)
- Specified by:
interestOpsin classjava.nio.channels.SelectionKey
-
readyOps
public int readyOps()
- Specified by:
readyOpsin classjava.nio.channels.SelectionKey
-
readyOps
void readyOps(int readyOps)
-
-