code: public synchronized void stop() {
          if (!monitorActive) {
              return;
          }
          monitorActive = false;
          resetAccounting(milliSecondFromNano());
          if (trafficShapingHandler != null) {
              trafficShapingHandler.doAccounting(this);
          }
          if (scheduledFuture != null) {
              scheduledFuture.cancel(true);
          }
      }
docs: Stop the monitoring process.