| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final SelectableChannel | |
| private final AFSocketCore | |
| private static final int | |
| private int | |
| private int | |
| private final AFSelector |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements abstract java. Requests that the registration of this key's channel with its selector be cancelled. |
| private void | |
| pack-priv void | |
| public SelectableChannel | channel()
Implements abstract java. Returns the channel for which this key was created. |
| pack-priv AFSocketCore | |
| pack-priv boolean | |
| public int | interestOps()
Implements abstract java. Retrieves this key's interest set. |
| public SelectionKey | interestOps(int
The new interest set interestOps)Implements abstract java. Sets this key's interest set to the given value. |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | isValid()
Implements abstract java. Tells whether or not this key is valid. |
| public int | readyOps()
Implements abstract java. Retrieves this key's ready-operation set. |
| public Selector | selector()
Implements abstract java. Returns the selector for which this key was created. |
| pack-priv void | |
| public String |
| cancelled | back to summary |
|---|---|
| private final AtomicBoolean cancelled | |
| chann | back to summary |
|---|---|
| private final SelectableChannel chann | |
| core | back to summary |
|---|---|
| private final AFSocketCore core | |
| OP_INVALID | back to summary |
|---|---|
| private static final int OP_INVALID | |
| ops | back to summary |
|---|---|
| private int ops | |
| opsReady | back to summary |
|---|---|
| private int opsReady | |
| sel | back to summary |
|---|---|
| private final AFSelector sel | |
| AFSelectionKey | back to summary |
|---|---|
| pack-priv AFSelectionKey(AFSelector selector, AbstractSelectableChannel ch, int ops, Object att) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements abstract java. Doc from java. Requests that the registration of this key's channel with its selector be cancelled. Upon return the key will be invalid and will have been added to its selector's cancelled-key set. The key will be removed from all of the selector's key sets during the next selection operation. If this key has already been cancelled then invoking this method has no effect. Once cancelled, a key remains forever invalid. This method may be invoked at any time. It synchronizes on the selector's cancelled-key set, and therefore may block briefly if invoked concurrently with a cancellation or selection operation involving the same selector.
| |
| cancel1 | back to summary |
|---|---|
| private void cancel1() | |
| cancelNoRemove | back to summary |
|---|---|
| pack-priv void cancelNoRemove() | |
| 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.
| |
| getAFCore | back to summary |
|---|---|
| pack-priv AFSocketCore getAFCore() | |
| hasOpInvalid | back to summary |
|---|---|
| pack-priv boolean hasOpInvalid() | |
| 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 interestOps) 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.
| |
| isCancelled | back to summary |
|---|---|
| pack-priv boolean isCancelled() | |
| isSelected | back to summary |
|---|---|
| pack-priv boolean isSelected() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements abstract java. Doc from java. Tells whether or not this key is valid. A key is valid upon creation and remains so until it is cancelled, its channel is closed, or its selector is closed.
| |
| 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.
| |
| 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. | |
| setOpsReady | back to summary |
|---|---|
| pack-priv void setOpsReady(int opsReady) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |