spectator-reg-metrics3/src/main/java/com/netflix/spectator/metrics3/MetricsDistributionSummary.java [37:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    this.clock = clock;
    this.id = id;
    this.impl = impl;
    this.totalAmount = new AtomicLong(0L);
  }

  @Override public Id id() {
    return id;
  }

  @Override public boolean hasExpired() {
    return false;
  }

  @Override public void record(long amount) {
    impl.update(amount);
  }

  @Override public Iterable<Measurement> measure() {
    final long now = clock.wallTime();
    final Snapshot snapshot = impl.getSnapshot();
    return Collections.singleton(new Measurement(id, now, snapshot.getMean()));
  }

  @Override public long count() {
    return impl.getCount();
  }

  @Override public long totalAmount() {
    return totalAmount.get();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spectator-reg-metrics5/src/main/java/com/netflix/spectator/metrics5/MetricsDistributionSummary.java [37:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    this.clock = clock;
    this.id = id;
    this.impl = impl;
    this.totalAmount = new AtomicLong(0L);
  }

  @Override public Id id() {
    return id;
  }

  @Override public boolean hasExpired() {
    return false;
  }

  @Override public void record(long amount) {
    impl.update(amount);
  }

  @Override public Iterable<Measurement> measure() {
    final long now = clock.wallTime();
    final Snapshot snapshot = impl.getSnapshot();
    return Collections.singleton(new Measurement(id, now, snapshot.getMean()));
  }

  @Override public long count() {
    return impl.getCount();
  }

  @Override public long totalAmount() {
    return totalAmount.get();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



