public long maxTimestamp() {
        return maxTimestamp;
    }
Creates an instance with the given params.

@param firstOffset                   The first offset in the message set unless the message format is less than V2 and we are appending
                                     to the follower.
@param lastOffset                    The last offset in the message set
@param lastLeaderEpoch               The partition leader epoch corresponding to the last offset, if available.
@param maxTimestamp                  The maximum timestamp of the message set.
@param shallowOffsetOfMaxTimestamp   The last offset of the batch with the maximum timestamp.
@param logAppendTime                 The log append time (if used) of the message set, otherwise Message.NoTimestamp
@param logStartOffset                The start offset of the log at the time of this append.
@param recordValidationStats         Statistics collected during record processing, `null` if `assignOffsets` is `false`
@param sourceCompression             The source codec used in the message set (send by the producer)
@param validBytes                    The number of valid bytes
@param lastOffsetOfFirstBatch        The last offset of the first batch
@param recordErrors                  List of record errors that caused the respective batch to be dropped
@param leaderHwChange                Incremental if the high watermark needs to be increased after appending record
                                     Same if high watermark is not changed. None is the default value and it means append failed
storage/src/main/java/org/apache/kafka/storage/internals/log/LogAppendInfo.java