Class BufferedSelectionChannel<T extends SelectionChannel>

    • Field Detail

      • buffer

        private final Buffer buffer
        Deprecated.
        The source IO buffer.
    • Constructor Detail

      • BufferedSelectionChannel

        public BufferedSelectionChannel​(Buffer buffer,
                                        T source,
                                        WakeupListener wakeupListener)
        Deprecated.
        Constructor.
        Parameters:
        buffer - The source byte buffer, typically remaining from previous read processing.
        source - The source channel.
        wakeupListener - The wakeup listener that will be notified.
    • Method Detail

      • canLoop

        public boolean canLoop​(Buffer buffer,
                               java.lang.Object... args)
        Deprecated.
        Indicates if the processing loop can continue.
        Specified by:
        canLoop in interface BufferProcessor
        Parameters:
        buffer - The IO buffer to drain.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        True if the processing loop can continue.
      • close

        public void close()
                   throws java.io.IOException
        Deprecated.
        Description copied from class: WrapperChannel
        Delegates to the wrapped channel.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.nio.channels.Channel
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class WrapperChannel<T extends SelectionChannel>
        Throws:
        java.io.IOException
      • getBuffer

        public Buffer getBuffer()
        Deprecated.
        Returns the source buffer.
        Returns:
        The source buffer.
      • onFillEof

        public void onFillEof()
        Deprecated.
        Called back when a fill operation returns with an EOF status.
        Specified by:
        onFillEof in interface BufferProcessor
      • postProcess

        public void postProcess​(int drained)
                         throws java.io.IOException
        Deprecated.
        Does nothing by default.
        Specified by:
        postProcess in interface BufferProcessor
        Parameters:
        drained - The number of bytes drained or -1 if the filling source has ended.
        Throws:
        java.io.IOException
      • preProcess

        public int preProcess​(int maxDrained,
                              java.lang.Object... args)
                       throws java.io.IOException
        Deprecated.
        Does nothing by default.
        Specified by:
        preProcess in interface BufferProcessor
        Parameters:
        maxDrained - The maximum number of bytes drained by this call or 0 for unlimited length.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        The number of bytes drained or -1 if the filling source has ended.
        Throws:
        java.io.IOException