Class ServerInputBuffer


  • public class ServerInputBuffer
    extends InputBuffer
    Server-side implementation of the InputBuffer.
    Author:
    Alexey Stashok
    • Constructor Detail

      • ServerInputBuffer

        public ServerInputBuffer()
    • Method Detail

      • initiateAsyncronousDataReceiving

        public void initiateAsyncronousDataReceiving()
        Initiates asynchronous data receiving. This is service method, usually users don't have to call it explicitly.
        Overrides:
        initiateAsyncronousDataReceiving in class InputBuffer
      • blockingRead

        protected HttpContent blockingRead()
                                    throws java.io.IOException
        Description copied from class: InputBuffer
        Read next chunk of data in this thread, block if needed.
        Overrides:
        blockingRead in class InputBuffer
        Returns:
        HttpContent
        Throws:
        java.io.IOException - if an error occurs reading data from the wire.
      • recycle

        public void recycle()
        Description copied from class: InputBuffer

        Recycle this InputBuffer for reuse.

        Overrides:
        recycle in class InputBuffer
      • getThreadPool

        protected java.util.concurrent.Executor getThreadPool()
        Overrides:
        getThreadPool in class InputBuffer
        Returns:
        Executor, which will be used for notifying user registered ReadHandler.