public FixedKeyRecord<K, V> withTimestamp(final long timestamp) {
        return new FixedKeyRecord<>(key, value, timestamp, headers);
    }
A convenient way to produce a new record if you only need to change the timestamp.

Copies the attributes of this record with the timestamp replaced.

@param timestamp The timestamp of the result record.
@return A new Record instance with all the same attributes (except that the timestamp is replaced).
streams/src/main/java/org/apache/kafka/streams/processor/api/FixedKeyRecord.java