Class GroupOffsetPartition
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ckafka.v20190819.models.GroupOffsetPartition
-
public class GroupOffsetPartition extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description GroupOffsetPartition()GroupOffsetPartition(GroupOffsetPartition 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 LonggetErrorCode()Get 错误码LonggetLag()Get 未消费的消息个数LonggetLogEndOffset()Get 当前 partition 最新的 offsetStringgetMetadata()Get 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。LonggetOffset()Get consumer 提交的 offset 位置LonggetPartition()Get topic 的 partitionIdvoidsetErrorCode(Long ErrorCode)Set 错误码voidsetLag(Long Lag)Set 未消费的消息个数voidsetLogEndOffset(Long LogEndOffset)Set 当前 partition 最新的 offsetvoidsetMetadata(String Metadata)Set 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。voidsetOffset(Long Offset)Set consumer 提交的 offset 位置voidsetPartition(Long Partition)Set topic 的 partitionIdvoidtoMap(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
-
GroupOffsetPartition
public GroupOffsetPartition()
-
GroupOffsetPartition
public GroupOffsetPartition(GroupOffsetPartition 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
-
getPartition
public Long getPartition()
Get topic 的 partitionId- Returns:
- Partition topic 的 partitionId
-
setPartition
public void setPartition(Long Partition)
Set topic 的 partitionId- Parameters:
Partition- topic 的 partitionId
-
getOffset
public Long getOffset()
Get consumer 提交的 offset 位置- Returns:
- Offset consumer 提交的 offset 位置
-
setOffset
public void setOffset(Long Offset)
Set consumer 提交的 offset 位置- Parameters:
Offset- consumer 提交的 offset 位置
-
getMetadata
public String getMetadata()
Get 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Metadata 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
-
setMetadata
public void setMetadata(String Metadata)
Set 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Metadata- 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
-
getErrorCode
public Long getErrorCode()
Get 错误码- Returns:
- ErrorCode 错误码
-
setErrorCode
public void setErrorCode(Long ErrorCode)
Set 错误码- Parameters:
ErrorCode- 错误码
-
getLogEndOffset
public Long getLogEndOffset()
Get 当前 partition 最新的 offset- Returns:
- LogEndOffset 当前 partition 最新的 offset
-
setLogEndOffset
public void setLogEndOffset(Long LogEndOffset)
Set 当前 partition 最新的 offset- Parameters:
LogEndOffset- 当前 partition 最新的 offset
-
getLag
public Long getLag()
Get 未消费的消息个数- Returns:
- Lag 未消费的消息个数
-
setLag
public void setLag(Long Lag)
Set 未消费的消息个数- Parameters:
Lag- 未消费的消息个数
-
-