| Modifier and Type | Field and Description |
|---|---|
| private final NativeSelectableChannel | |
| private int | |
| private int | |
| private int | |
| private final PollSelector |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SelectableChannel | channel()
Implements abstract java. |
| pack-priv int | |
| pack-priv int | |
| public int | interestOps()
Implements abstract java. |
| public SelectionKey | interestOps(int
The new interest set ops)Implements abstract java. |
| public int | readyOps()
Implements abstract java. |
| pack-priv void | |
| public Selector | selector()
Implements abstract java. |
| pack-priv void |
| channel | back to summary |
|---|---|
| private final NativeSelectableChannel channel | |
| index | back to summary |
|---|---|
| private int index | |
| interestOps | back to summary |
|---|---|
| private int interestOps | |
| readyOps | back to summary |
|---|---|
| private int readyOps | |
| selector | back to summary |
|---|---|
| private final PollSelector selector | |
| PollSelectionKey | back to summary |
|---|---|
| public PollSelectionKey(PollSelector selector, NativeSelectableChannel channel) | |
| channel | back to summary |
|---|---|
| public SelectableChannel channel() Implements abstract java. Doc from java. Returns the channel for which this key was created. This method will continue to return the channel even after the key is cancelled.
| |
| getFD | back to summary |
|---|---|
| pack-priv int getFD() | |
| getIndex | back to summary |
|---|---|
| pack-priv int getIndex() | |
| interestOps | back to summary |
|---|---|
| public int interestOps() Implements abstract java. Doc from java. Retrieves this key's interest set. It is guaranteed that the returned set will only contain operation bits that are valid for this key's channel.
| |
| interestOps | back to summary |
|---|---|
| public SelectionKey interestOps(int ops) Implements abstract java. Doc from java. Sets this key's interest set to the given value. This method may be invoked at any time. If this method is invoked while a selection operation is in progress then it has no effect upon that operation; the change to the key's interest set will be seen by the next selection operation.
| |
| readyOps | back to summary |
|---|---|
| public int readyOps() Implements abstract java. Doc from java. Retrieves this key's ready-operation set. It is guaranteed that the returned set will only contain operation bits that are valid for this key's channel.
| |
| readyOps | back to summary |
|---|---|
| pack-priv void readyOps(int readyOps) | |
| selector | back to summary |
|---|---|
| public Selector selector() Implements abstract java. Doc from java. Returns the selector for which this key was created. This method will continue to return the selector even after the key is cancelled. | |
| setIndex | back to summary |
|---|---|
| pack-priv void setIndex(int index) | |