public class ConsumerRecord extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getHeaders()
Get Message headers
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getKey()
Get Message key
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getOffset()
Get Offset
|
Long |
getPartition()
Get Partition ID
|
Long |
getTimestamp()
Get Message timestamp
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getTopic()
Get Topic name
|
String |
getValue()
Get Message value
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setHeaders(String Headers)
Set Message headers
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setKey(String Key)
Set Message key
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setOffset(Long Offset)
Set Offset
|
void |
setPartition(Long Partition)
Set Partition ID
|
void |
setTimestamp(Long Timestamp)
Set Message timestamp
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setTopic(String Topic)
Set Topic name
|
void |
setValue(String Value)
Set Message value
Note: this field may return `null`, indicating that no valid values can be obtained.
|
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 ConsumerRecord()
public ConsumerRecord(ConsumerRecord source)
public String getTopic()
public void setTopic(String Topic)
Topic
- Topic namepublic Long getPartition()
public void setPartition(Long Partition)
Partition
- Partition IDpublic Long getOffset()
public void setOffset(Long Offset)
Offset
- Offsetpublic String getKey()
public void setKey(String Key)
Key
- Message key
Note: this field may return `null`, indicating that no valid values can be obtained.public String getValue()
public void setValue(String Value)
Value
- Message value
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getTimestamp()
public void setTimestamp(Long Timestamp)
Timestamp
- Message timestamp
Note: this field may return `null`, indicating that no valid values can be obtained.public String getHeaders()
public void setHeaders(String Headers)
Headers
- Message headers
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.