Package com.biglybt.core.networkmanager
Interface VirtualChannelSelector.VirtualSelectorListener
-
- All Superinterfaces:
VirtualChannelSelector.VirtualAbstractSelectorListener
- All Known Implementing Classes:
AEProxyImpl
- Enclosing class:
- VirtualChannelSelector
public static interface VirtualChannelSelector.VirtualSelectorListener extends VirtualChannelSelector.VirtualAbstractSelectorListener
Listener for notification upon socket channel selection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
selectFailure(VirtualChannelSelector selector, java.nio.channels.SocketChannel sc, java.lang.Object attachment, java.lang.Throwable msg)
Called when a channel selection fails.boolean
selectSuccess(VirtualChannelSelector selector, java.nio.channels.SocketChannel sc, java.lang.Object attachment)
Called when a channel is successfully selected for readyness.
-
-
-
Method Detail
-
selectSuccess
boolean selectSuccess(VirtualChannelSelector selector, java.nio.channels.SocketChannel sc, java.lang.Object attachment)
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 null -> progress made, String -> location of non progress e.g. read-select -> read >0 bytes, write-select -> wrote > 0 bytes
-
selectFailure
void selectFailure(VirtualChannelSelector selector, java.nio.channels.SocketChannel sc, java.lang.Object attachment, java.lang.Throwable msg)
Called when a channel selection fails.- Parameters:
msg
- failure message
-
-