@Deprecated
  public void setBytesThreshold(long bytesThreshold) {
    if (bytesThreshold < 0) {
      throw new IllegalArgumentException(
          String.format(
              "Queue size specified has to be a non-negative number and the value given %s is not acceptable",
              bytesThreshold));
    }

    props.setProperty(CacheXml.BYTES_THRESHOLD, String.valueOf(bytesThreshold));
  }
Sets the number of unwritten bytes of data that can be enqueued before being written to disk.
It has significance only in case of asynchronous mode of writing.

@param bytesThreshold the maximum number of bytes to enqueue before async data is flushed.
@throws IllegalArgumentException if the value specified is a negative number
@deprecated as of 6.5 use {@link DiskStoreFactory#setQueueSize} instead
geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributesFactory.java