Class ReadableSizedSelectionChannel

    • Field Detail

      • availableSize

        private volatile long availableSize
        Deprecated.
        The remaining size that should be read from the source channel.
    • Constructor Detail

      • ReadableSizedSelectionChannel

        public ReadableSizedSelectionChannel​(CompletionListener completionListener,
                                             Buffer buffer,
                                             ReadableSelectionChannel source,
                                             long availableSize,
                                             WakeupListener wakeupListener)
        Deprecated.
        Constructor.
        Parameters:
        completionListener - The listener to callback upon reading completion.
        buffer - The source byte buffer, typically remaining from previous read processing.
        source - The source channel.
        availableSize - The total available size that can be read from the source channel.
        wakeupListener - The wakeup listener that will be notified.
    • Method Detail

      • getAvailableSize

        protected long getAvailableSize()
        Deprecated.
        Returns the remaining size that should be read from the source channel.
        Returns:
        The remaining size that should be read from the source channel.
      • onDrain

        public int onDrain​(Buffer buffer,
                           int maxDrained,
                           java.lang.Object... args)
                    throws java.io.IOException
        Deprecated.
        Description copied from class: ReadableBufferedChannel
        Drains the byte buffer.
        Specified by:
        onDrain in interface BufferProcessor
        Overrides:
        onDrain in class ReadableBufferedChannel
        Parameters:
        buffer - The IO buffer to drain.
        maxDrained - The maximum number of bytes drained by this call.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        The number of bytes drained.
        Throws:
        java.io.IOException
      • setAvailableSize

        protected void setAvailableSize​(long availableSize)
                                 throws java.io.IOException
        Deprecated.
        Sets the remaining size that should be read from the source channel.
        Parameters:
        availableSize - The remaining size that should be read from the source channel.
        Throws:
        java.io.IOException