public void close() {
    for (ResourceMonitor monitor : resourceMonitors.values()) {
      monitor.stopMonitoring();
    }

    stopExecutor(scheduledExecutor);
    stopExecutor(notifyExecutor);

    stats.close();
    closed = true;
  }
Implementation of ResourceManager with additional internal-only methods.
geode-core/src/main/java/org/apache/geode/internal/cache/control/InternalResourceManager.java