public void enableEventHistory() {
    synchronized (lock) {
      if (eventHistory == null) {
        eventHistory = new ArrayList<>();
      }
    }
  }
Enables collection of event history.

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