K
- Outgoing record key typeV
- Outgoing record value typeT
- Correlation metadata typepublic class SenderRecord<K,V,T> extends Object
SenderResult
to its corresponding record.Modifier and Type | Method and Description |
---|---|
T |
correlationMetadata()
Returns the correlation metadata associated with this instance which is not sent to Kafka,
but can be used to correlate response to outbound request.
|
static <K,V,T> SenderRecord<K,V,T> |
create(ProducerRecord<K,V> record,
T correlationMetadata)
Creates a record to send to Kafka.
|
ProducerRecord<K,V> |
record()
Returns the Kafka producer record associated with this instance.
|
public static <K,V,T> SenderRecord<K,V,T> create(ProducerRecord<K,V> record, T correlationMetadata)
record
- the producer record to send to KafkacorrelationMetadata
- Additional correlation metadata that is not sent to Kafka, but is
included in the response to match SenderResult
to this record.Sender.send(org.reactivestreams.Publisher, boolean)
public ProducerRecord<K,V> record()
public T correlationMetadata()