@Override
  public void toData(DataOutput out) throws IOException {
    checkLocalMaxMemoryExists();
    out.writeInt(redundancy);
    out.writeLong(totalMaxMemory);
    out.writeInt(getLocalMaxMemory()); // call the gettor to force it to be computed in the offheap
                                       // case
    out.writeInt(totalNumBuckets);
    DataSerializer.writeString(colocatedRegionName, out);
    DataSerializer.writeObject(localProperties, out);
    DataSerializer.writeObject(globalProperties, out);
    out.writeLong(recoveryDelay);
    out.writeLong(startupRecoveryDelay);
    DataSerializer.writeObject(fixedPAttrs, out);
  }
@throws IllegalStateException if off-heap and the actual value is not yet known (because the
        DistributedSystem has not yet been created)
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionAttributesImpl.java