public void callbacksInvoked(boolean dispatched) {
    setEventFlag(EventFlags.FLAG_CALLBACKS_INVOKED, dispatched);
  }
set this to true after dispatching the event to a cache listener
geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java