boolean hasListener() {
    CacheListener[] listeners = fetchCacheListenersField();
    return listeners != null && listeners.length > 0;
  }
@param rgnEvent the RegionEvent for region invalidation
geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java