public static interface ManagedSelector.Selectable
ManagedSelector.Selectable
is an EndPoint
that wish to be
notified of non-blocking events by the ManagedSelector
.Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
onSelected()
Callback method invoked when a read or write events has been
detected by the
ManagedSelector for this endpoint. |
void |
replaceKey(java.nio.channels.SelectionKey newKey)
Callback method invoked when the SelectionKey is replaced
because the channel has been moved to a new selector.
|
void |
updateKey()
Callback method invoked when all the keys selected by the
ManagedSelector for this endpoint have been processed. |
java.lang.Runnable onSelected()
ManagedSelector
for this endpoint.void updateKey()
ManagedSelector
for this endpoint have been processed.void replaceKey(java.nio.channels.SelectionKey newKey)
newKey
- the new SelectionKeyCopyright © 1995–2021 Webtide. All rights reserved.