public void disableEventHistory() {
    synchronized (lock) {
      eventHistory = null;
    }
  }
Disables collection of events.

@since GemFire 5.0
geode-dunit/src/main/java/org/apache/geode/cache30/TestCacheListener.java