private Set<InternalDistributedMember> getAllRecipients(InternalCache cache,
      Map<String, Map<Integer, List<Object>>> map) {
    Set<InternalDistributedMember> recipients = new ObjectOpenHashSet<>();
    for (Object pr : map.keySet()) {
      PartitionedRegion partitionedRegion = (PartitionedRegion) cache.getRegion((String) pr);
      if (partitionedRegion != null && partitionedRegion.getRegionAdvisor() != null) {
        recipients.addAll(partitionedRegion.getRegionAdvisor().adviseDataStore());
      }
    }
    return recipients;
  }
Logs a batch of events.

@param events The batch of events to log
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySenderEventProcessor.java