|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.netty.channel.FixedReceiveBufferSizePredictor
public class FixedReceiveBufferSizePredictor
The ReceiveBufferSizePredictor
that always yields the same buffer
size prediction. This predictor ignores the feed back from the I/O thread.
Constructor Summary | |
---|---|
FixedReceiveBufferSizePredictor(int bufferSize)
Creates a new predictor that always returns the same prediction of the specified buffer size. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedReceiveBufferSizePredictor(int bufferSize)
Method Detail |
---|
public int nextReceiveBufferSize()
ReceiveBufferSizePredictor
ChannelBuffer
for the next
read operation depending on the actual number of read bytes in the
previous read operation.
nextReceiveBufferSize
in interface ReceiveBufferSizePredictor
public void previousReceiveBufferSize(int previousReceiveBufferSize)
ReceiveBufferSizePredictor
previousReceiveBufferSize
in interface ReceiveBufferSizePredictor
previousReceiveBufferSize
- the actual number of read bytes in the previous read operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |