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);
}

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
