void stop() {
      synchronized (this) {
        if (consumer != null) {
          alive = false;
          consumer.interrupt();
          consumer = null;
        }
      }
    }
Used to hand-off from producer to consumer
geode-core/src/main/java/org/apache/geode/internal/statistics/StatMonitorHandler.java