public class ConsumerRecord extends AbstractModel
Constructor and Description |
---|
ConsumerRecord() |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get Message key.
|
Long |
getOffset()
Get Offset.
|
Long |
getPartition()
Get Partition ID.
|
Long |
getTimestamp()
Get Message timestamp.
|
String |
getTopic()
Get Topic name.
|
String |
getValue()
Get Message value.
|
void |
setKey(String Key)
Set Message key.
|
void |
setOffset(Long Offset)
Set Offset.
|
void |
setPartition(Long Partition)
Set Partition ID.
|
void |
setTimestamp(Long Timestamp)
Set Message timestamp.
|
void |
setTopic(String Topic)
Set Topic name.
|
void |
setValue(String Value)
Set Message value.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getTopic()
public void setTopic(String Topic)
Topic
- Topic name.public Long getPartition()
public void setPartition(Long Partition)
Partition
- Partition ID.public Long getOffset()
public void setOffset(Long Offset)
Offset
- Offset.public String getKey()
public void setKey(String Key)
Key
- Message key.
Note: this field may return `null`, indicating that no valid value was found.public String getValue()
public void setValue(String Value)
Value
- Message value.
Note: this field may return `null`, indicating that no valid value was found.public Long getTimestamp()
public void setTimestamp(Long Timestamp)
Timestamp
- Message timestamp.
Note: this field may return `null`, indicating that no valid value was found.Copyright © 2020. All rights reserved.