class DistributionStats implements DMStats {

  @Override
  public void endReplyWait(long startNanos, long initTime) {
    if (enableClockStats) {
      stats.incLong(replyWaitTimeId, getTime() - startNanos);
      // this.replyWaitHistogram.endOp(delta);
    }
    if (initTime != 0) {
      long waitTime = System.currentTimeMillis() - initTime;
      maxReplyWaitTime.recordMax(waitTime);
    }
    stats.incInt(replyWaitsInProgressId, -1);
    stats.incInt(replyWaitsCompletedId, 1);

    Breadcrumbs.setSendSide(null); // clear any recipient breadcrumbs set by the message
    Breadcrumbs.setProblem(null); // clear out reply-wait errors
  }

  public  DistributionStats(StatisticsFactory f, long statId);
  @VisibleForTesting public  DistributionStats(StatisticsFactory factory, String textId, long statId,
      LongSupplier clock);
  @VisibleForTesting public  DistributionStats(Statistics statistics);
  @VisibleForTesting public  DistributionStats(Statistics statistics, LongSupplier clock);

}