protected int getQueueSizeStat() {
    if (_messageQueue != null) {
      HARegionQueueStats stats = _messageQueue.getStatistics();
      return ((int) (stats.getEventsEnqued() - stats.getEventsRemoved()
          - stats.getEventsConflated() - stats.getMarkerEventsConflated()
          - stats.getEventsExpired() - stats.getEventsRemovedByQrm() - stats.getEventsTaken()
          - stats.getNumVoidRemovals()));
    }
    return 0;
  }
Returns the size of the queue calculated through stats This includes events that have
dispatched but have yet been removed

@return the size of the queue
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/MessageDispatcher.java