public class AdaptiveBufferSizePredictor extends Object implements BufferSizePredictor
| 构造器和说明 |
|---|
AdaptiveBufferSizePredictor()
Creates a new predictor with the default parameters.
|
AdaptiveBufferSizePredictor(int minimum,
int initial,
int maximum)
Creates a new predictor with the specified parameters.
|
public AdaptiveBufferSizePredictor()
1024, does not
go down below 64, and does not go up above 65536.public AdaptiveBufferSizePredictor(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 int nextBufferSize()
nextBufferSize 在接口中 BufferSizePredictorpublic void previousReceivedBufferSize(int previousReceivedBufferSize)
Copyright © 2016. All rights reserved.