/** * Messages which have been ACKed (via the checkpoint finalize) are no longer in flight. This is * only used for flow control and stats. */ private void retire() throws IOException { long nowMsSinceEpoch = now(); while (true) { List<String> ackIds = ackedIds.poll(); if (ackIds == null) { return; } numAcked.add(nowMsSinceEpoch, ackIds.size()); for (String ackId : ackIds) { inFlight.remove(ackId); safeToAckIds.remove(ackId); } } }
long nowMsSinceEpoch = now(); List<String> assumeExpired = new ArrayList<>(); List<String> toBeExtended = new ArrayList<>();
long requestTimeMsSinceEpoch = now(); long deadlineMsSinceEpoch = requestTimeMsSinceEpoch + ackTimeoutMs;
long nowMsSinceEpoch = now(); if (lastLogTimestampMsSinceEpoch < 0) { lastLogTimestampMsSinceEpoch = nowMsSinceEpoch;
long nowMsSinceEpoch = now(); numReadBytes.add(nowMsSinceEpoch, current.elementBytes.length); minReadTimestampMsSinceEpoch.add(nowMsSinceEpoch, current.timestampMsSinceEpoch);
long nowMsSinceEpoch = now(); long readMin = minReadTimestampMsSinceEpoch.get(nowMsSinceEpoch); long unreadMin = minUnreadTimestampMsSinceEpoch.get();