public void setBatchSize(int batchSize) {
    this.batchSize = batchSize;
    if (eventProcessor != null) {
      eventProcessor.setBatchSize(batchSize);
    }
  }
Set BatchSize for this GatewaySender.

Care must be taken to set this consistently across all gateway senders in the cluster and only
when safe to do so.

@since Geode 1.15
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySender.java