public class FixedReceiveBufferSizePredictorFactory extends Object implements ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictorFactory
that returns a
FixedReceiveBufferSizePredictor
with the pre-defined configuration.Constructor and Description |
---|
FixedReceiveBufferSizePredictorFactory(int bufferSize)
Creates a new factory that returns a
FixedReceiveBufferSizePredictor
which always returns the same prediction of the specified buffer size. |
Modifier and Type | Method and Description |
---|---|
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 Exception
ReceiveBufferSizePredictorFactory
ReceiveBufferSizePredictor
.getPredictor
in interface ReceiveBufferSizePredictorFactory
Exception
Copyright © 2008-2016 The Netty Project. All Rights Reserved.