public long timestamp() {
        return this.timestamp;
    }
The timestamp of the record in the topic/partition.

@return the timestamp of the record, or -1 if the {{@link #hasTimestamp()}} returns false.
clients/src/main/java/org/apache/kafka/clients/producer/RecordMetadata.java