protected boolean requiresNotificationFromPR(PartitionedRegion r){
synchronized (GemFireCacheImpl.class) {
    boolean hasSerialSenders=hasSerialSenders(r);
    boolean result=hasSerialSenders;
    if (!result) {
      Iterator allCacheServersIterator=allCacheServers.iterator();
      while (allCacheServersIterator.hasNext()) {
        CacheServerImpl server=(CacheServerImpl)allCacheServersIterator.next();
        if (!server.getNotifyBySubscription()) {
          result=true;
          break;
        }
      }
    }
    return result;
  }
}

protected boolean requiresNotificationFromPR ( PartitionedRegion r ) { synchronized ( GemFireCacheImpl . class ) { boolean hasSerialSenders = hasSerialSenders ( r ) ; boolean result = hasSerialSenders ; if ( ! result ) { Iterator allCacheServersIterator = allCacheServers . iterator ( ) ; while ( allCacheServersIterator . hasNext ( ) ) { CacheServerImpl server = ( CacheServerImpl ) allCacheServersIterator . next ( ) ; if ( ! server . getNotifyBySubscription ( ) ) { result = true ; break ; } } } return result ; } }
check to see if any cache components require notification from a partitioned region . notification adds to the messaging a pr must do on each put / destroy / invalidate operation and should be kept to a minimum
