| Modifier and Type | Field and Description |
|---|---|
| private final NativeSelectableChannel | |
| private int | |
| private int | |
| private final KQSelector |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SelectableChannel | channel()
Implements abstract java. |
| 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. |
| channel | back to summary |
|---|---|
| private final NativeSelectableChannel channel | |
| interestOps | back to summary |
|---|---|
| private int interestOps | |
| readyOps | back to summary |
|---|---|
| private int readyOps | |
| selector | back to summary |
|---|---|
| private final KQSelector selector | |
| KQSelectionKey | back to summary |
|---|---|
| public KQSelectionKey(KQSelector selector, NativeSelectableChannel channel, int ops) | |
| 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() | |
| 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. | |