// However, if there is less that 100ms left, just let it go.
if ((batchReq.delay == 0) ||
(lastBatchResult.getEndTime() + batchReq.delay <
clock.getTimeMillis() + 100)) {
lastBatchSize = batchReq.batchSize;
return new BatchSize(batchReq.batchSize);
}
return new BatchSize();
}