Class ConsumerRecord
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ckafka.v20190819.models.ConsumerRecord
-
public class ConsumerRecord extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ConsumerRecord()ConsumerRecord(ConsumerRecord source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeaders()Get 消息headers 注意:此字段可能返回 null,表示取不到有效值。StringgetKey()Get 消息key 注意:此字段可能返回 null,表示取不到有效值。LonggetOffset()Get 位点LonggetPartition()Get 分区idLonggetTimestamp()Get 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。StringgetTopic()Get 主题名StringgetValue()Get 消息value 注意:此字段可能返回 null,表示取不到有效值。voidsetHeaders(String Headers)Set 消息headers 注意:此字段可能返回 null,表示取不到有效值。voidsetKey(String Key)Set 消息key 注意:此字段可能返回 null,表示取不到有效值。voidsetOffset(Long Offset)Set 位点voidsetPartition(Long Partition)Set 分区idvoidsetTimestamp(Long Timestamp)Set 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。voidsetTopic(String Topic)Set 主题名voidsetValue(String Value)Set 消息value 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ConsumerRecord
public ConsumerRecord()
-
ConsumerRecord
public ConsumerRecord(ConsumerRecord source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getTopic
public String getTopic()
Get 主题名- Returns:
- Topic 主题名
-
setTopic
public void setTopic(String Topic)
Set 主题名- Parameters:
Topic- 主题名
-
getPartition
public Long getPartition()
Get 分区id- Returns:
- Partition 分区id
-
setPartition
public void setPartition(Long Partition)
Set 分区id- Parameters:
Partition- 分区id
-
getOffset
public Long getOffset()
Get 位点- Returns:
- Offset 位点
-
setOffset
public void setOffset(Long Offset)
Set 位点- Parameters:
Offset- 位点
-
getKey
public String getKey()
Get 消息key 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Key 消息key 注意:此字段可能返回 null,表示取不到有效值。
-
setKey
public void setKey(String Key)
Set 消息key 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Key- 消息key 注意:此字段可能返回 null,表示取不到有效值。
-
getValue
public String getValue()
Get 消息value 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Value 消息value 注意:此字段可能返回 null,表示取不到有效值。
-
setValue
public void setValue(String Value)
Set 消息value 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Value- 消息value 注意:此字段可能返回 null,表示取不到有效值。
-
getTimestamp
public Long getTimestamp()
Get 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Timestamp 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
-
setTimestamp
public void setTimestamp(Long Timestamp)
Set 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Timestamp- 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
-
getHeaders
public String getHeaders()
Get 消息headers 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Headers 消息headers 注意:此字段可能返回 null,表示取不到有效值。
-
setHeaders
public void setHeaders(String Headers)
Set 消息headers 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Headers- 消息headers 注意:此字段可能返回 null,表示取不到有效值。
-
-