Class FixedReceiveBufferSizePredictor

    • Constructor Detail

      • FixedReceiveBufferSizePredictor

        public FixedReceiveBufferSizePredictor​(int bufferSize)
        Creates a new predictor that always returns the same prediction of the specified buffer size.
    • Method Detail

      • previousReceiveBufferSize

        public void previousReceiveBufferSize​(int previousReceiveBufferSize)
        Description copied from interface: ReceiveBufferSizePredictor
        Updates this predictor by specifying the actual number of read bytes in the previous read operation.
        Specified by:
        previousReceiveBufferSize in interface ReceiveBufferSizePredictor
        Parameters:
        previousReceiveBufferSize - the actual number of read bytes in the previous read operation