Interface KafkaRecord<K,T>
- 
- All Superinterfaces:
- Message<T>
 - All Known Subinterfaces:
- KafkaMessage<K,T>
 - All Known Implementing Classes:
- IncomingKafkaRecord,- OutgoingKafkaRecord
 
 public interface KafkaRecord<K,T> extends Message<T> 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <K,T>
 OutgoingKafkaRecord<K,T>from(Message<T> message)org.apache.kafka.common.header.HeadersgetHeaders()KgetKey()intgetPartition()InstantgetTimestamp()StringgetTopic()static <K,T>
 OutgoingKafkaRecord<K,T>of(String topic, K key, T value)Creates a new outgoing Kafka record.static <K,T>
 OutgoingKafkaRecord<K,T>of(String topic, K key, T value, Instant timestamp, int partition)Creates a new outgoing Kafka record.static <K,T>
 OutgoingKafkaRecord<K,T>of(K key, T value)Creates a new outgoing Kafka record.- 
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Messageack, addMetadata, getAck, getMetadata, getMetadata, getNack, getPayload, nack, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
 
- 
 
- 
- 
- 
Method Detail- 
fromstatic <K,T> OutgoingKafkaRecord<K,T> from(Message<T> message) 
 - 
ofstatic <K,T> OutgoingKafkaRecord<K,T> of(K key, T value) Creates a new outgoing Kafka record.- Type Parameters:
- K- the type of the key
- T- the type of the value
- Parameters:
- key- the key, can be- null
- value- the value / payload, must not be- null
- Returns:
- the new outgoing Kafka record
 
 - 
ofstatic <K,T> OutgoingKafkaRecord<K,T> of(String topic, K key, T value) Creates a new outgoing Kafka record.- Type Parameters:
- K- the type of the key
- T- the type of the value
- Parameters:
- topic- the topic, must not be- null
- key- the key, can be- null
- value- the value / payload, must not be- null
- Returns:
- the new outgoing Kafka record
 
 - 
ofstatic <K,T> OutgoingKafkaRecord<K,T> of(String topic, K key, T value, Instant timestamp, int partition) Creates a new outgoing Kafka record.- Type Parameters:
- K- the type of the key
- T- the type of the value
- Parameters:
- topic- the topic, must not be- null
- key- the key, can be- null
- value- the value / payload, must not be- null
- timestamp- the timestamp, can be null to indicate no timestamp
- partition- the partition, can be- -1to indicate no partition
- Returns:
- the new outgoing Kafka record
 
 - 
getKeyK getKey() 
 - 
getTopicString getTopic() 
 - 
getPartitionint getPartition() 
 - 
getTimestampInstant getTimestamp() 
 - 
getHeadersorg.apache.kafka.common.header.Headers getHeaders() 
 
- 
 
-