Interface VirtualChannelSelector.VirtualAcceptSelectorListener

    • 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