code: public void record(long amount) {
      if (amount >= 0) {
        totalAmount.increment(amount);
        count.increment();
        max.update(amount);
        min.update(amount);
      }
    }
docs: Updates the statistics kept by the summary with the specified amount.