public class ConsumerGroup extends AbstractModel
header, skipSign
Constructor and Description |
---|
ConsumerGroup() |
ConsumerGroup(ConsumerGroup 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 |
getGroup()
Get 消费组名称
|
String |
getProtocolName()
Get 分区分配策略均衡算法名称。
- 常见均衡算法如下:
- range:按分区范围分配
- roundrobin:轮询式分配
- sticky:粘性分配(避免不必要的重平衡)
|
String |
getState()
Get 状态。
- Empty:组内没有成员,但存在已提交的偏移量。所有消费者都离开但保留了偏移量
- Dead:组内没有成员,且没有已提交的偏移量。组被删除或长时间无活动
- Stable:组内成员正常消费,分区分配平衡。正常运行状态
- PreparingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开
- CompletingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开
|
void |
setGroup(String Group)
Set 消费组名称
|
void |
setProtocolName(String ProtocolName)
Set 分区分配策略均衡算法名称。
- 常见均衡算法如下:
- range:按分区范围分配
- roundrobin:轮询式分配
- sticky:粘性分配(避免不必要的重平衡)
|
void |
setState(String State)
Set 状态。
- Empty:组内没有成员,但存在已提交的偏移量。所有消费者都离开但保留了偏移量
- Dead:组内没有成员,且没有已提交的偏移量。组被删除或长时间无活动
- Stable:组内成员正常消费,分区分配平衡。正常运行状态
- PreparingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开
- CompletingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ConsumerGroup()
public ConsumerGroup(ConsumerGroup source)
public String getGroup()
public void setGroup(String Group)
Group
- 消费组名称public String getState()
public void setState(String State)
State
- 状态。
- Empty:组内没有成员,但存在已提交的偏移量。所有消费者都离开但保留了偏移量
- Dead:组内没有成员,且没有已提交的偏移量。组被删除或长时间无活动
- Stable:组内成员正常消费,分区分配平衡。正常运行状态
- PreparingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开
- CompletingRebalance:组正在准备重新平衡。有新成员加入或现有成员离开public String getProtocolName()
public void setProtocolName(String ProtocolName)
ProtocolName
- 分区分配策略均衡算法名称。
- 常见均衡算法如下:
- range:按分区范围分配
- roundrobin:轮询式分配
- sticky:粘性分配(避免不必要的重平衡)Copyright © 2025. All rights reserved.