206207208209210211212
// change. private final double PHI_FACTOR = 1.0 / Math.log(10.0); ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
303304305306307308309
// this value defaults to the same initial value the FD is seeded with private final long MAX_INTERVAL_IN_NANO = getMaxInterval(); ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }
200201202203204205206
private double tLast_ = 0L; private BoundedStatsDeque arrivalIntervals_; ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
234235236237238239240
198199200201202203204
249250251252253254255
// rather mark it down quickly instead of adapting private final double MAX_INTERVAL_IN_MS = DatabaseDescriptor.getRpcTimeout(); ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
221222223224225226227
241242243244245246247
private int size_; ArrivalWindow(int size) { size_ = size; arrivalIntervals_ = new BoundedStatsDeque(size); }