@Override
  public void setCompressionLevel(int newCompressionLevel) {
    if (newCompressionLevel < getMinimumCompressionLevel() || newCompressionLevel > getMaximumCompressionLevel()) {
      throw new IllegalArgumentException(
          "Invalid new compression level " + newCompressionLevel + ".  Level must be between "
              + getMinimumCompressionLevel() + " and " + getMaximumCompressionLevel());
    }

    compressionLevel = newCompressionLevel;
  }
Set the current compression level.  The new compression level must be between minimum and maximum level range.
@param newCompressionLevel The new compression level.
ambry-commons/src/main/java/com/github/ambry/compression/BaseCompressionWithLevel.java