public int eventQueueSize() {
    return getQueue() == null ? 0 : getQueue().size();
  }
Returns the current batch id to be used to identify the next batch.

@return the current batch id to be used to identify the next batch
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySenderEventProcessor.java