private List<GatewaySenderEventImpl> pendingEventsInBatches() {
    List<GatewaySenderEventImpl> pendingEvents = new ArrayList<>();
    if (!batchIdToEventsMap.isEmpty()) {
      for (Map.Entry<Integer, List<GatewaySenderEventImpl>[]> entry : batchIdToEventsMap
          .entrySet()) {
        pendingEvents.addAll(entry.getValue()[0]);
      }
    }
    return pendingEvents;
  }
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