Interface ManagedSelector.Selectable
- All Known Implementing Classes:
 DatagramChannelEndPoint, NetworkTrafficSocketChannelEndPoint, SelectableChannelEndPoint, SocketChannelEndPoint
- Enclosing class:
 ManagedSelector
public static interface ManagedSelector.Selectable
A 
ManagedSelector.Selectable is an EndPoint that wish to be
notified of non-blocking events by the ManagedSelector.- 
Method Summary
Modifier and TypeMethodDescriptionCallback method invoked when a read or write events has been detected by theManagedSelectorfor this endpoint.voidreplaceKey(SelectionKey newKey) Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.voidCallback method invoked when all the keys selected by theManagedSelectorfor this endpoint have been processed. 
- 
Method Details
- 
onSelected
Runnable onSelected()Callback method invoked when a read or write events has been detected by theManagedSelectorfor this endpoint.- Returns:
 - a job that may block or null
 
 - 
updateKey
void updateKey()Callback method invoked when all the keys selected by theManagedSelectorfor this endpoint have been processed. - 
replaceKey
Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.- Parameters:
 newKey- the new SelectionKey
 
 -