public final class SelectionManager.Key extends Object
Modifier and Type | Field and Description |
---|---|
(package private) SelectableChannel |
channel
the channel that this Key represents a registration for
|
(package private) SelectionManager.SelectionHandler |
handler
the supplied callback object for dispatching I/O events
|
(package private) int |
interestMask
the current interest mask established with the SelectionKey
|
(package private) boolean |
onReadyQueue |
(package private) boolean |
onRenewQueue |
(package private) int |
readyMask |
(package private) SelectionManager.Key |
readyQueueNext |
(package private) int |
renewMask |
(package private) SelectionManager.Key |
renewQueueNext |
(package private) SelectionKey |
selectionKey
the SelectionKey representing this Key's registration with the
internal Selector, or null if it hasn't yet been registered
|
Constructor and Description |
---|
SelectionManager.Key(SelectableChannel channel,
SelectionManager.SelectionHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
renewInterestMask(int mask)
Renews interest in receiving notifications when the I/O operations
identified by the specified mask are ready for the associated
SelectableChannel.
|
final SelectableChannel channel
final SelectionManager.SelectionHandler handler
SelectionKey selectionKey
int interestMask
boolean onRenewQueue
SelectionManager.Key renewQueueNext
int renewMask
boolean onReadyQueue
SelectionManager.Key readyQueueNext
int readyMask
SelectionManager.Key(SelectableChannel channel, SelectionManager.SelectionHandler handler)
public void renewInterestMask(int mask) throws ClosedChannelException
ClosedChannelException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.