@Override
  public E take() throws InterruptedException {
    if (Thread.interrupted()) {
      throw new InterruptedException();
    }
    E result = super.take();
    postRemove(result);
    stats.remove();
    return result;
  }
Creates new OverflowQueueWithDMStats with a maximum capacity.
geode-core/src/main/java/org/apache/geode/distributed/internal/OverflowQueueWithDMStats.java