expiredBatches.add(batch); count++; batchIterator.remove();//如果超时了释放内存 deallocate(batch); } else {// Stop at the first batch that has not expired.break; } } } } }if (!expiredBatches.isEmpty()) log.trace("Expired {} batches in accumulator", count);return expiredBatches; } ...
Can cause callbacks to fire out of order when strict ordering is required. i.e., when accumulator batches expire, their callbacks fire before callbacks for inflight batches (that are actually preceding batches to the batches in the accumulator). Note that this is really an issue only formax.i...