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 NativeSelectableChannel
channel
private int
index
private int
interestOps
private int
readyOps
private PollSelector
selector
-
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.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)
-
-
-
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:
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)
-
-