# Class: KafkaProducerRecord

## vertx-kafka-client-js/kafka_producer_record~ KafkaProducerRecord

#### new KafkaProducerRecord()

Vert.x Kafka producer record.

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 29

### Methods

#### key() → {Object}

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 55

##### Returns:

the key (or null if no key is specified)

Type
  Object

#### partition() → {number}

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 94

##### Returns:

the partition to which the record will be sent (or null if no partition was specified)

Type
  number

#### timestamp() → {number}

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 81

##### Returns:

the timestamp of this record

Type
  number

#### topic() → {string}

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 42

##### Returns:

the topic this record is being sent to

Type
  string

#### value() → {Object}

Source:
  - vertx-kafka-client-js/kafka_producer_record.js, line 68

##### Returns:

the value

Type
  Object