Modifier and Type | Field and Description |
---|---|
private final SelChImpl | |
private int | |
private static final VarHandle | |
private volatile int | |
pack-priv int | |
private volatile int | |
private int | |
private volatile boolean | |
private final SelectorImpl |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public SelectableChannel | channel()
Implements abstract java. Returns the channel for which this key was created. |
private void | |
pack-priv boolean | |
pack-priv FileDescriptor | |
pack-priv int | |
pack-priv int | |
public int | interestOps()
Implements abstract java. Retrieves this key's interest set. |
public SelectionKey | interestOps(int
The new interest set ops)Implements abstract java. Sets this key's interest set to the given value. |
public int | interestOpsAnd(int
The interest set to apply ops)Overrides java. Atomically sets this key's interest set to the bitwise intersection ("and") of the existing interest set and the given value. |
public int | interestOpsOr(int
The interest set to apply ops)Overrides java. Atomically sets this key's interest set to the bitwise union ("or") of the existing interest set and the given value. |
public SelectionKey | |
public int | |
public void | |
public int | |
public int | readyOps()
Implements abstract java. Retrieves this key's ready-operation set. |
pack-priv void | |
pack-priv int | |
pack-priv void | |
public Selector | selector()
Implements abstract java. Returns the selector for which this key was created. |
pack-priv void | |
public String | |
pack-priv boolean | |
pack-priv boolean | |
pack-priv int |
channel | back to summary |
---|---|
private final SelChImpl channel |
index | back to summary |
---|---|
private int index |
INTERESTOPS | back to summary |
---|---|
private static final VarHandle INTERESTOPS |
interestOps | back to summary |
---|---|
private volatile int interestOps |
lastPolled | back to summary |
---|---|
pack-priv int lastPolled |
readyOps | back to summary |
---|---|
private volatile int readyOps |
registeredEvents | back to summary |
---|---|
private int registeredEvents |
reset | back to summary |
---|---|
private volatile boolean reset |
selector | back to summary |
---|---|
private final SelectorImpl selector |
SelectionKeyImpl | back to summary |
---|---|
pack-priv SelectionKeyImpl(SelChImpl ch, SelectorImpl sel) |
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.
|
ensureValid | back to summary |
---|---|
private void ensureValid() |
getAndClearReset | back to summary |
---|---|
pack-priv boolean getAndClearReset() Clears the reset flag, returning the previous value of the flag |
getFD | back to summary |
---|---|
pack-priv FileDescriptor getFD() |
getFDVal | back to summary |
---|---|
pack-priv int getFDVal() |
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.
|
interestOpsAnd | back to summary |
---|---|
public int interestOpsAnd(int ops) Overrides java. Doc from java. Atomically sets this key's interest set to the bitwise intersection ("and")
of the existing interest set and the given value. This method is guaranteed
to be atomic with respect to other concurrent calls to this method or to
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.
|
interestOpsOr | back to summary |
---|---|
public int interestOpsOr(int ops) Overrides java. Doc from java. Atomically sets this key's interest set to the bitwise union ("or") of
the existing interest set and the given value. This method is guaranteed
to be atomic with respect to other concurrent calls to this method or to
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.
|
nioInterestOps | back to summary |
---|---|
public SelectionKey nioInterestOps(int ops) |
nioInterestOps | back to summary |
---|---|
public int nioInterestOps() |
nioReadyOps | back to summary |
---|---|
public void nioReadyOps(int ops) |
nioReadyOps | back to summary |
---|---|
public int nioReadyOps() |
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.
|
registeredEvents | back to summary |
---|---|
pack-priv void registeredEvents(int events) |
registeredEvents | back to summary |
---|---|
pack-priv int registeredEvents() |
reset | back to summary |
---|---|
pack-priv void reset() Sets the reset flag, re-queues the key, and wakeups up the Selector |
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 i) |
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- |
translateAndSetReadyOps | back to summary |
---|---|
pack-priv boolean translateAndSetReadyOps(int ops) |
translateAndUpdateReadyOps | back to summary |
---|---|
pack-priv boolean translateAndUpdateReadyOps(int ops) |
translateInterestOps | back to summary |
---|---|
pack-priv int translateInterestOps() |