code: public void set(long lowWaterMark, long highWaterMark, long current, double integral,
                      long startTime, long lastSampleTime) {
          this.current = current;
          this.integral = integral;
          this.lowWaterMark = lowWaterMark;
          this.highWaterMark = highWaterMark;
          this.startTime = startTime;
          this.lastSampleTime = lastSampleTime;
      }
docs: /*
  Non-Synchronizable: counter is "replaced" with the input value. Caller should synchronize.