code: public void doUpdates(MetricsContext unused) {
  
      // get all statistic from the LooksideCache object,
      // this does not need any locking.
      LocalMetrics stats = LookasideCache.copyZeroLocalMetrics();
  
      synchronized (this) {
        if (stats != null) {
          this.numAddCache.set(stats.numAdd);
          this.numAddNewCache.set(stats.numAddNew);
          this.numAddExistingCache.set(stats.numAddExisting);
          this.numRenameCache.set(stats.numRename);
          this.numRemoveCache.set(stats.numRemove);
          this.numEvictCache.set(stats.numEvict);
          this.numGetAttempts.set(stats.numGetAttempts);
          this.numGetHits.set(stats.numGetHits);
  
          // push it
          this.numAddCache.pushMetric(this.metricsRecord);
          this.numAddNewCache.pushMetric(this.metricsRecord);
          this.numAddExistingCache.pushMetric(this.metricsRecord);
          this.numRenameCache.pushMetric(this.metricsRecord);
          this.numRemoveCache.pushMetric(this.metricsRecord);
          this.numEvictCache.pushMetric(this.metricsRecord);
          this.numGetAttempts.pushMetric(this.metricsRecord);
          this.numGetHits.pushMetric(this.metricsRecord);
        }
      }
      metricsRecord.update();
    }
docs: Since this object is a registered updater, this method will be called
  periodically, e.g. every 5 seconds.