boolean meetRequirement(Long value) throws NullPointerException {
    Objects.requireNonNull(value, "Input value is empty which cannot be applied to threshold check.");
    return boundType == BoundType.UpperBound ? value <= threshold : value >= threshold;
  }
Check if measured value meets the predefined requirement(threshold).
@param value the measured value to check.
@return {@code true} if measured value meets requirement. {@code false} otherwise.
@throws NullPointerException when the input value is null.
ambry-api/src/main/java/com/github/ambry/commons/Criteria.java