Package org.jboss.netty.channel
Class AdaptiveReceiveBufferSizePredictorFactory
- java.lang.Object
-
- org.jboss.netty.channel.AdaptiveReceiveBufferSizePredictorFactory
-
- All Implemented Interfaces:
ReceiveBufferSizePredictorFactory
public class AdaptiveReceiveBufferSizePredictorFactory extends java.lang.Object implements ReceiveBufferSizePredictorFactory
TheReceiveBufferSizePredictorFactorythat creates a newAdaptiveReceiveBufferSizePredictor.
-
-
Constructor Summary
Constructors Constructor Description AdaptiveReceiveBufferSizePredictorFactory()Creates a new factory with the default parameters.AdaptiveReceiveBufferSizePredictorFactory(int minimum, int initial, int maximum)Creates a new factory with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceiveBufferSizePredictorgetPredictor()Returns a newly createdReceiveBufferSizePredictor.
-
-
-
Constructor Detail
-
AdaptiveReceiveBufferSizePredictorFactory
public AdaptiveReceiveBufferSizePredictorFactory()
Creates a new factory with the default parameters. With the default parameters, the expected buffer size starts from1024, does not go down below64, and does not go up above65536.
-
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 sizeinitial- the initial buffer size when no feed back was receivedmaximum- the inclusive upper bound of the expected buffer size
-
-
Method Detail
-
getPredictor
public ReceiveBufferSizePredictor getPredictor() throws java.lang.Exception
Description copied from interface:ReceiveBufferSizePredictorFactoryReturns a newly createdReceiveBufferSizePredictor.- Specified by:
getPredictorin interfaceReceiveBufferSizePredictorFactory- Throws:
java.lang.Exception
-
-