public boolean drainInProgress() {
    synchronized (drainsInProgressLock) {
      return numDrainsInProgress > 0;
    }
  }
returns the queue size calculated through stats
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientProxy.java