public static TtlUpdateRequest readFrom(DataInputStream stream, ClusterMap map) throws IOException {
    Short version = stream.readShort();
    switch (version) {
      case TTL_UPDATE_REQUEST_VERSION_1:
        return TtlUpdateRequest_V1.readFrom(stream, map);
      default:
        throw new IllegalStateException("Unknown TTL Request version " + version);
    }
  }
Helper to construct TtlUpdateRequest from a stream
@param stream the stream to read data from
@param map the {@link ClusterMap} to use
@return a TtlUpdateRequest based on data read off of the stream
@throws IOException if there were any problems reading the stream
ambry-protocol/src/main/java/com/github/ambry/protocol/TtlUpdateRequest.java