public void handleException() {
    final GatewaySenderStats statistics = sender.getStatistics();
    statistics.incBatchesRedistributed();
    resetLastPeekedEvents = true;
  }
In case of BatchException we expect that the dispatcher has removed all the events till the
event that threw BatchException.
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySenderEventProcessor.java