public class AdaptiveReceiveBufferSizePredictorFactory extends Object implements ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictorFactory that creates a new
AdaptiveReceiveBufferSizePredictor.| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
ReceiveBufferSizePredictor |
getPredictor()
Returns a newly created
ReceiveBufferSizePredictor. |
public AdaptiveReceiveBufferSizePredictorFactory()
1024, does not
go down below 64, and does not go up above 65536.public AdaptiveReceiveBufferSizePredictorFactory(int minimum,
int initial,
int maximum)
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 sizepublic ReceiveBufferSizePredictor getPredictor() throws Exception
ReceiveBufferSizePredictorFactoryReceiveBufferSizePredictor.getPredictor in interface ReceiveBufferSizePredictorFactoryExceptionCopyright © 2008-2015 The Netty Project. All Rights Reserved.