@Override
    public int size() {
      return data.size();
    }
@param data the backing collection.
@param shouldAdd a predicate that returns true if an item should be added to the backing collection.
ambry-utils/src/main/java/com/github/ambry/utils/BatchBlockingQueue.java