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 Details

    • selectSuccess

      boolean selectSuccess(VirtualChannelSelector selector, SocketChannel sc, 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, SocketChannel sc, Object attachment, Throwable msg)
      Called when a channel selection fails.
      Parameters:
      msg - failure message