200201202203204205206
private double tLast_ = 0L; private BoundedStatsDeque arrivalIntervals_; ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
248249250251252253254
// rather mark it down quickly instead of adapting private final double MAX_INTERVAL_IN_MS = DatabaseDescriptor.getRpcTimeout(); ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
201202203204205206207
219220221222223224225
282283284285286287288
// rather mark it down quickly instead of adapting private final double MAX_INTERVAL_IN_MS = DatabaseDescriptor.getRpcTimeout(); ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }
232233234235236237238
296297298299300301302
// this value defaults to the same initial value the FD is seeded with private final int MAX_INTERVAL_IN_MS = getMaxInterval(); ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }
241242243244245246247
290291292293294295296
// rather mark it down quickly instead of adapting private final long MAX_INTERVAL_IN_NANO = DatabaseDescriptor.getRpcTimeout() * MILLI_TO_NANO; ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }
213214215216217218219