All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.craft.atom.nio.spi.NioBufferSizePredictor Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package io.craft.atom.nio.spi;

/**
 * Predicts the nio buffer size.
 * 

* Predict buffer size allocation, More accurate the prediction is, more effective the memory utilization will be. * * @author mindwind * @version 1.0, Jan 25, 2013 */ public interface NioBufferSizePredictor { /** * Predicts the size of next operaion. * * @return the expected size at this time for next operation */ int next(); /** * Updates predictor by specifying the actual size in the previous operation. * * @param previousSize the actual size in the previous read operation */ void previous(int previousSize); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy