public class IncomingKafkaRecord<K,T> extends Object implements KafkaRecord<K,T>
| Constructor and Description |
|---|
IncomingKafkaRecord(io.vertx.mutiny.kafka.client.consumer.KafkaConsumer<K,T> consumer,
io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecord<K,T> record) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
ack()
Acknowledge this message.
|
Supplier<CompletionStage<Void>> |
getAck() |
org.apache.kafka.common.header.Headers |
getHeaders() |
K |
getKey() |
Metadata |
getMetadata() |
long |
getOffset() |
int |
getPartition() |
T |
getPayload() |
Instant |
getTimestamp() |
String |
getTopic() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, of, ofaddMetadata, getMetadata, of, unwrap, withAck, withMetadata, withMetadata, withPayloadpublic T getPayload()
getPayload in interface Message<T>public K getKey()
getKey in interface KafkaRecord<K,T>public String getTopic()
getTopic in interface KafkaRecord<K,T>public int getPartition()
getPartition in interface KafkaRecord<K,T>public Instant getTimestamp()
getTimestamp in interface KafkaRecord<K,T>public org.apache.kafka.common.header.Headers getHeaders()
getHeaders in interface KafkaRecord<K,T>public long getOffset()
public Metadata getMetadata()
getMetadata in interface Message<T>public Supplier<CompletionStage<Void>> getAck()
getAck in interface Message<T>CompletionStage.Copyright © 2018–2020 SmallRye. All rights reserved.