public class ConsumerRecord extends AbstractModel
| Constructor and Description |
|---|
ConsumerRecord() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Get 消息key
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getOffset()
Get 位点
|
Long |
getPartition()
Get 分区id
|
Long |
getTimestamp()
Get 消息时间戳
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getTopic()
Get 主题名
|
String |
getValue()
Get 消息value
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setKey(String Key)
Set 消息key
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setOffset(Long Offset)
Set 位点
|
void |
setPartition(Long Partition)
Set 分区id
|
void |
setTimestamp(Long Timestamp)
Set 消息时间戳
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setTopic(String Topic)
Set 主题名
|
void |
setValue(String Value)
Set 消息value
注意:此字段可能返回 null,表示取不到有效值。
|
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, toJsonStringpublic String getTopic()
public void setTopic(String Topic)
Topic - 主题名public Long getPartition()
public void setPartition(Long Partition)
Partition - 分区idpublic Long getOffset()
public void setOffset(Long Offset)
Offset - 位点public String getKey()
public void setKey(String Key)
Key - 消息key
注意:此字段可能返回 null,表示取不到有效值。public String getValue()
public void setValue(String Value)
Value - 消息value
注意:此字段可能返回 null,表示取不到有效值。public Long getTimestamp()
public void setTimestamp(Long Timestamp)
Timestamp - 消息时间戳
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2020. All rights reserved.