/** * Increases the number of bytes read this second to the given number. * * @param nbRead number of bytes that have been read or skipped from the underlying stream. */ private void addToLimitCounter(long nbRead) { updateLimitCounter(); this.nbBytesReadThisSecond += nbRead; }
long msUntilNextSecond = updateLimitCounter(); msUntilNextSecond = updateLimitCounter();