public static MemoryThresholds fromData(DataInput in) throws IOException {
    long maxMemoryBytes = in.readLong();
    float criticalThreshold = in.readFloat();
    float evictionThreshold = in.readFloat();
    return new MemoryThresholds(maxMemoryBytes, criticalThreshold, evictionThreshold);
  }
Generate a Thresholds object from data available from the DataInput

@param in DataInput from which to read the data
@return a new instance of Thresholds
geode-core/src/main/java/org/apache/geode/internal/cache/control/MemoryThresholds.java