Package com.biglybt.core.networkmanager
Interface VirtualChannelSelector.VirtualAcceptSelectorListener
- All Superinterfaces:
VirtualChannelSelector.VirtualAbstractSelectorListener
- Enclosing class:
- VirtualChannelSelector
public static interface VirtualChannelSelector.VirtualAcceptSelectorListener
extends VirtualChannelSelector.VirtualAbstractSelectorListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
selectFailure
(VirtualChannelSelector selector, ServerSocketChannel sc, Object attachment, Throwable msg) Called when a channel selection fails.boolean
selectSuccess
(VirtualChannelSelector selector, ServerSocketChannel sc, Object attachment) Called when a channel is successfully selected for readyness.
-
Method Details
-
selectSuccess
Called when a channel is successfully selected for readyness.- Parameters:
attachment
- originally given with the channel's registration- Returns:
- indicator of whether or not any 'progress' was made due to this select e.g. read-select -> read >0 bytes, write-select -> wrote > 0 bytes
-
selectFailure
void selectFailure(VirtualChannelSelector selector, ServerSocketChannel sc, Object attachment, Throwable msg) Called when a channel selection fails.- Parameters:
msg
- failure message
-