public int getQueueSizeStat() {
    return _messageDispatcher == null ? 0 : _messageDispatcher.getQueueSizeStat();
  }
returns the queue size calculated through stats
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientProxy.java