It calculates the close-to-optimal capacity of the {@link ChannelBuffer}for the next read operation depending on the actual number of read bytes in the previous read operation. More accurate the prediction is, more effective the memory utilization will be.
Once a read operation is performed and the actual number of read bytes is known, an I/O thread will call {@link #previousReceiveBufferSize(int)} toupdate the predictor so it can predict more accurately next time.
It calculates the close-to-optimal capacity of the {@link ChannelBuffer}for the next read operation depending on the actual number of read bytes in the previous read operation. More accurate the prediction is, more effective the memory utilization will be.
Once a read operation is performed and the actual number of read bytes is known, an I/O thread will call {@link #previousReceiveBufferSize(int)} toupdate the predictor so it can predict more accurately next time.
It calculates the close-to-optimal capacity of the {@link ChannelBuffer}for the next read operation depending on the actual number of read bytes in the previous read operation. More accurate the prediction is, more effective the memory utilization will be.
Once a read operation is performed and the actual number of read bytes is known, an I/O thread will call {@link #previousReceiveBufferSize(int)} toupdate the predictor so it can predict more accurately next time. @author The Netty Project (netty-dev@lists.jboss.org) @author Trustin Lee (tlee@redhat.com) @version $Rev: 1406 $, $Date: 2009-06-17 18:33:20 +0900 (Wed, 17 Jun 2009) $
|
|