@Override
    public boolean add(T t) {
      if (shouldAdd.test(t)) {
        return data.add(t);
      }
      return false;
    }
@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