@Override
  public int drainTo(Collection<? super E> c) {
    int result = super.drainTo(c);
    if (result > 0) {
      stats.remove(result);
      postDrain(c);
    }
    return result;
  }
Creates new OverflowQueueWithDMStats with a maximum capacity.
geode-core/src/main/java/org/apache/geode/distributed/internal/OverflowQueueWithDMStats.java