public class GroupInfoResponse extends AbstractModel
Constructor and Description |
---|
GroupInfoResponse() |
GroupInfoResponse(GroupInfoResponse 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 |
getErrorCode()
Get 错误码,正常为0
|
String |
getGroup()
Get Kafka 消费分组
|
GroupInfoMember[] |
getMembers()
Get 仅当 state 为 Stable 且 protocol_type 为 consumer 时, 该数组才包含信息
|
String |
getProtocol()
Get 消费者 partition 分配算法常见的有如下几种(Kafka 消费者 SDK 默认的选择项为 range):range、 roundrobin、 sticky
|
String |
getProtocolType()
Get 消费分组选择的协议类型正常的消费者一般为 consumer 但有些系统采用了自己的协议如 kafka-connect 用的就是 connect。只有标准的 consumer 协议,本接口才知道具体的分配方式的格式,才能解析到具体的 partition 的分配情况
|
String |
getState()
Get group 状态描述(常见的为 Empty、Stable、Dead 三种状态):
Dead:消费分组不存在
Empty:消费分组,当前没有任何消费者订阅
PreparingRebalance:消费分组处于 rebalance 状态
CompletingRebalance:消费分组处于 rebalance 状态
Stable:消费分组中各个消费者已经加入,处于稳定状态
|
void |
setErrorCode(String ErrorCode)
Set 错误码,正常为0
|
void |
setGroup(String Group)
Set Kafka 消费分组
|
void |
setMembers(GroupInfoMember[] Members)
Set 仅当 state 为 Stable 且 protocol_type 为 consumer 时, 该数组才包含信息
|
void |
setProtocol(String Protocol)
Set 消费者 partition 分配算法常见的有如下几种(Kafka 消费者 SDK 默认的选择项为 range):range、 roundrobin、 sticky
|
void |
setProtocolType(String ProtocolType)
Set 消费分组选择的协议类型正常的消费者一般为 consumer 但有些系统采用了自己的协议如 kafka-connect 用的就是 connect。只有标准的 consumer 协议,本接口才知道具体的分配方式的格式,才能解析到具体的 partition 的分配情况
|
void |
setState(String State)
Set group 状态描述(常见的为 Empty、Stable、Dead 三种状态):
Dead:消费分组不存在
Empty:消费分组,当前没有任何消费者订阅
PreparingRebalance:消费分组处于 rebalance 状态
CompletingRebalance:消费分组处于 rebalance 状态
Stable:消费分组中各个消费者已经加入,处于稳定状态
|
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 GroupInfoResponse()
public GroupInfoResponse(GroupInfoResponse source)
public String getErrorCode()
public void setErrorCode(String ErrorCode)
ErrorCode
- 错误码,正常为0public String getState()
public void setState(String State)
State
- group 状态描述(常见的为 Empty、Stable、Dead 三种状态):
Dead:消费分组不存在
Empty:消费分组,当前没有任何消费者订阅
PreparingRebalance:消费分组处于 rebalance 状态
CompletingRebalance:消费分组处于 rebalance 状态
Stable:消费分组中各个消费者已经加入,处于稳定状态public String getProtocolType()
public void setProtocolType(String ProtocolType)
ProtocolType
- 消费分组选择的协议类型正常的消费者一般为 consumer 但有些系统采用了自己的协议如 kafka-connect 用的就是 connect。只有标准的 consumer 协议,本接口才知道具体的分配方式的格式,才能解析到具体的 partition 的分配情况public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- 消费者 partition 分配算法常见的有如下几种(Kafka 消费者 SDK 默认的选择项为 range):range、 roundrobin、 stickypublic GroupInfoMember[] getMembers()
public void setMembers(GroupInfoMember[] Members)
Members
- 仅当 state 为 Stable 且 protocol_type 为 consumer 时, 该数组才包含信息public String getGroup()
public void setGroup(String Group)
Group
- Kafka 消费分组Copyright © 2021. All rights reserved.