@Deprecated
  public void setCompactionThreshold(int compactionThreshold) {
    if (compactionThreshold < 0) {
      throw new IllegalArgumentException(
          String.format("%s has to be positive number and the value given %s is not acceptable",
              CacheXml.COMPACTION_THRESHOLD,
              compactionThreshold));
    } else if (compactionThreshold > 100) {
      throw new IllegalArgumentException(
          String.format(
              "%s has to be a number that does not exceed %s so the value given %s is not acceptable",
              CacheXml.COMPACTION_THRESHOLD,
              compactionThreshold, 100));
    }
    props.setProperty(CacheXml.COMPACTION_THRESHOLD, String.valueOf(compactionThreshold));
  }
Sets the threshold at which an oplog will become compactable. While the percentage of live
records in the oplog exceeds this threshold the oplog will not be compacted. Once the
percentage of live is less than or equal to the threshold the oplog can be compacted. The lower
the threshold the longer the compactor will wait before compacting an oplog. The threshold is a
percentage in the range 0..100. The default is 50%.
<P>
Examples: A threshold of 100 causes any oplog that is no longer being written to to be
compactable. A threshold of 0 causes only oplogs that have no live records to be compactable in
which case the compact can simply remove the oplog file. A threshold of 50 causes an oplog to
become compactable when half of its live records become dead.

@param compactionThreshold the threshold at which an oplog will become compactable

@deprecated as of 6.5 use {@link DiskStoreFactory#setCompactionThreshold} instead
geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributesFactory.java