public class KafkaMessageInfo extends Object implements org.apache.sling.distribution.journal.MessageInfo
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MESSAGE_TYPE |
| Constructor and Description |
|---|
KafkaMessageInfo(org.apache.kafka.clients.consumer.ConsumerRecord<String,?> record) |
KafkaMessageInfo(org.apache.kafka.clients.consumer.ConsumerRecord<String,?> record,
Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreateTime() |
long |
getOffset() |
int |
getPartition() |
Map<String,String> |
getProps() |
String |
getTopic() |
String |
toString() |
public static final String KEY_MESSAGE_TYPE
public KafkaMessageInfo(org.apache.kafka.clients.consumer.ConsumerRecord<String,?> record)
public String getTopic()
getTopic in interface org.apache.sling.distribution.journal.MessageInfopublic int getPartition()
getPartition in interface org.apache.sling.distribution.journal.MessageInfopublic long getOffset()
getOffset in interface org.apache.sling.distribution.journal.MessageInfopublic long getCreateTime()
getCreateTime in interface org.apache.sling.distribution.journal.MessageInfopublic Map<String,String> getProps()
getProps in interface org.apache.sling.distribution.journal.MessageInfoCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.