public class FixedReceiveBufferSizePredictorFactory extends java.lang.Object implements ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictorFactory
that returns a
FixedReceiveBufferSizePredictor
with the pre-defined configuration.构造器和说明 |
---|
FixedReceiveBufferSizePredictorFactory(int bufferSize)
Creates a new factory that returns a
FixedReceiveBufferSizePredictor
which always returns the same prediction of the specified buffer size. |
限定符和类型 | 方法和说明 |
---|---|
ReceiveBufferSizePredictor |
getPredictor()
Returns a newly created
ReceiveBufferSizePredictor . |
public FixedReceiveBufferSizePredictorFactory(int bufferSize)
FixedReceiveBufferSizePredictor
which always returns the same prediction of the specified buffer size.public ReceiveBufferSizePredictor getPredictor() throws java.lang.Exception
ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictor
.getPredictor
在接口中 ReceiveBufferSizePredictorFactory
java.lang.Exception