/** * Instantiates a new operation impl. * * @param source the source * @param targets the targets * @param averageNanos the average nanos * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ public OperationImpl(OperationStatistic<T> source, Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.count = new SemiExpiringStatistic<Long>(source.statistic(targets), executor, historySize, historyNanos); this.latency = new LatencyImpl(source, targets, averageNanos, executor, historySize, historyNanos); this.rate = new RateImpl(source, targets, averageNanos, executor, historySize, historyNanos); }
/** * Instantiates a new operation impl. * * @param source the source * @param targets the targets * @param averageNanos the average nanos * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ public OperationImpl(OperationStatistic<T> source, Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.count = new SemiExpiringStatistic<Long>(source.statistic(targets), executor, historySize, historyNanos); this.latency = new LatencyImpl(source, targets, averageNanos, executor, historySize, historyNanos); this.rate = new RateImpl(source, targets, averageNanos, executor, historySize, historyNanos); }
/** * Instantiates a new operation impl. * * @param source the source * @param targets the targets * @param averageNanos the average nanos * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ public OperationImpl(OperationStatistic<T> source, Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.count = new SemiExpiringStatistic<Long>(source.statistic(targets), executor, historySize, historyNanos); this.latency = new LatencyImpl(source, targets, averageNanos, executor, historySize, historyNanos); this.rate = new RateImpl(source, targets, averageNanos, executor, historySize, historyNanos); }