Class AdaptiveReceiveBufferSizePredictorFactory

    • Field Detail

      • minimum

        private final int minimum
      • initial

        private final int initial
      • maximum

        private final int maximum
    • Constructor Detail

      • AdaptiveReceiveBufferSizePredictorFactory

        public AdaptiveReceiveBufferSizePredictorFactory()
        Creates a new factory with the default parameters. With the default parameters, the expected buffer size starts from 1024, does not go down below 64, and does not go up above 65536.
      • AdaptiveReceiveBufferSizePredictorFactory

        public AdaptiveReceiveBufferSizePredictorFactory​(int minimum,
                                                         int initial,
                                                         int maximum)
        Creates a new factory with the specified parameters.
        Parameters:
        minimum - the inclusive lower bound of the expected buffer size
        initial - the initial buffer size when no feed back was received
        maximum - the inclusive upper bound of the expected buffer size