public void toData(DataOutput out) throws IOException {
    out.writeLong(maxMemoryBytes);
    out.writeFloat(criticalThreshold);
    out.writeFloat(evictionThreshold);
  }
Write the state of this to the DataOutput

@param out DataOutput on which to write internal state
geode-core/src/main/java/org/apache/geode/internal/cache/control/MemoryThresholds.java