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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
selectFailure(VirtualChannelSelector selector, java.nio.channels.ServerSocketChannel sc, java.lang.Object attachment, java.lang.Throwable msg)
Called when a channel selection fails.boolean
selectSuccess(VirtualChannelSelector selector, java.nio.channels.ServerSocketChannel sc, java.lang.Object attachment)
Called when a channel is successfully selected for readyness.
-
-
-
Method Detail
-
selectSuccess
boolean selectSuccess(VirtualChannelSelector selector, java.nio.channels.ServerSocketChannel 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 e.g. read-select -> read >0 bytes, write-select -> wrote > 0 bytes
-
selectFailure
void selectFailure(VirtualChannelSelector selector, java.nio.channels.ServerSocketChannel sc, java.lang.Object attachment, java.lang.Throwable msg)
Called when a channel selection fails.- Parameters:
msg
- failure message
-
-