K
- Incoming record key typeV
- Incoming record value typepublic class ReceiverRecord<K,V>
extends org.apache.kafka.clients.consumer.ConsumerRecord<K,V>
KafkaReceiver
.Constructor and Description |
---|
ReceiverRecord(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> consumerRecord,
ReceiverOffset receiverOffset) |
Modifier and Type | Method and Description |
---|---|
ReceiverOffset |
receiverOffset()
Returns an acknowledgeable offset instance that should be acknowledged after this
record has been consumed.
|
public ReceiverRecord(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> consumerRecord, ReceiverOffset receiverOffset)
public ReceiverOffset receiverOffset()
KafkaReceiver
.
Acknowledged records may be also committed using ReceiverOffset.commit()
.