258259260261262263264
// rather mark it down quickly instead of adapting private final double MAX_INTERVAL_IN_MS = DatabaseDescriptor.getRpcTimeout(); ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
213214215216217218219
private double tLast_ = 0L; private BoundedStatsDeque arrivalIntervals_; ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
206207208209210211212
// change. private final double PHI_FACTOR = 1.0 / Math.log(10.0); ArrivalWindow(int size) { arrivalIntervals_ = new BoundedStatsDeque(size); }
239240241242243244245
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); }
212213214215216217218
220221222223224225226
304305306307308309310
// this value defaults to the same initial value the FD is seeded with private final long MAX_INTERVAL_IN_NANO = getMaxInterval() * MILLI_TO_NANO; ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }
284285286287288289290
// rather mark it down quickly instead of adapting private final double MAX_INTERVAL_IN_MS = DatabaseDescriptor.getRpcTimeout(); ArrivalWindow(int size) { arrivalIntervals = new BoundedStatsDeque(size); }