public class FixedReceiveBufferSizePredictor extends java.lang.Object implements ReceiveBufferSizePredictor
ReceiveBufferSizePredictor that always yields the same buffer
size prediction. This predictor ignores the feed back from the I/O thread.| 构造器和说明 |
|---|
FixedReceiveBufferSizePredictor(int bufferSize)
Creates a new predictor that always returns the same prediction of
the specified buffer size.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
nextReceiveBufferSize()
Predicts the capacity of the
ChannelBuffer for the next
read operation depending on the actual number of read bytes in the
previous read operation. |
void |
previousReceiveBufferSize(int previousReceiveBufferSize)
Updates this predictor by specifying the actual number of read bytes
in the previous read operation.
|
public FixedReceiveBufferSizePredictor(int bufferSize)
public int nextReceiveBufferSize()
ReceiveBufferSizePredictorChannelBuffer for the next
read operation depending on the actual number of read bytes in the
previous read operation.nextReceiveBufferSize 在接口中 ReceiveBufferSizePredictorpublic void previousReceiveBufferSize(int previousReceiveBufferSize)
ReceiveBufferSizePredictorpreviousReceiveBufferSize 在接口中 ReceiveBufferSizePredictorpreviousReceiveBufferSize - the actual number of read bytes in the previous read operation