public void inhibitCacheListenerNotification(boolean inhibit) {
    setEventFlag(EventFlags.FLAG_INHIBIT_LISTENER_NOTIFICATION, inhibit);
  }
set this to true to inhibit application cache listener notification during event dispatching
geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java