public long offset() {
        return this.offset;
    }
The offset of the record in the topic/partition.
@return the offset of the record, or -1 if {{@link #hasOffset()}} returns false.
clients/src/main/java/org/apache/kafka/clients/producer/RecordMetadata.java