public class AdaptiveReceiveBufferSizePredictorFactory extends java.lang.Object implements ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictorFactory
that creates a new
AdaptiveReceiveBufferSizePredictor
.构造器和说明 |
---|
AdaptiveReceiveBufferSizePredictorFactory()
Creates a new factory with the default parameters.
|
AdaptiveReceiveBufferSizePredictorFactory(int minimum,
int initial,
int maximum)
Creates a new factory with the specified parameters.
|
限定符和类型 | 方法和说明 |
---|---|
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 java.lang.Exception
ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictor
.getPredictor
在接口中 ReceiveBufferSizePredictorFactory
java.lang.Exception