Package jnr.enxio.channels
Class PollSelectionKey
- java.lang.Object
-
- java.nio.channels.SelectionKey
-
- java.nio.channels.spi.AbstractSelectionKey
-
- jnr.enxio.channels.PollSelectionKey
-
class PollSelectionKey extends java.nio.channels.spi.AbstractSelectionKey
-
-
Field Summary
Fields Modifier and Type Field Description private NativeSelectableChannelchannelprivate intindexprivate intinterestOpsprivate intreadyOpsprivate PollSelectorselector
-
Constructor Summary
Constructors Constructor Description PollSelectionKey(PollSelector selector, NativeSelectableChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.SelectableChannelchannel()(package private) intgetFD()(package private) intgetIndex()intinterestOps()java.nio.channels.SelectionKeyinterestOps(int ops)intreadyOps()(package private) voidreadyOps(int readyOps)java.nio.channels.Selectorselector()(package private) voidsetIndex(int index)
-
-
-
Field Detail
-
selector
private final PollSelector selector
-
channel
private final NativeSelectableChannel channel
-
interestOps
private int interestOps
-
readyOps
private int readyOps
-
index
private int index
-
-
Constructor Detail
-
PollSelectionKey
public PollSelectionKey(PollSelector selector, NativeSelectableChannel channel)
-
-
Method Detail
-
setIndex
void setIndex(int index)
-
getIndex
int getIndex()
-
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)
-
-