public class ConsumerClient extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ConsumerClient() | 
| ConsumerClient(ConsumerClient 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 | getChannelProtocol()Get 消费者客户端类型,枚举值如下:
- grpc:GRPC协议
- remoting:Remoting协议
- http:HTTP协议
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getClientAddr()Get 客户端地址 | 
| String | getClientId()Get 客户端ID | 
| Long | getConsumerLag()Get 客户端消费堆积
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getLanguage()Get 客户端SDK语言 | 
| String | getVersion()Get 客户端SDK版本 | 
| void | setChannelProtocol(String ChannelProtocol)Set 消费者客户端类型,枚举值如下:
- grpc:GRPC协议
- remoting:Remoting协议
- http:HTTP协议
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setClientAddr(String ClientAddr)Set 客户端地址 | 
| void | setClientId(String ClientId)Set 客户端ID | 
| void | setConsumerLag(Long ConsumerLag)Set 客户端消费堆积
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setLanguage(String Language)Set 客户端SDK语言 | 
| void | setVersion(String Version)Set 客户端SDK版本 | 
| 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, toJsonStringpublic ConsumerClient()
public ConsumerClient(ConsumerClient source)
public String getClientId()
public void setClientId(String ClientId)
ClientId - 客户端IDpublic String getClientAddr()
public void setClientAddr(String ClientAddr)
ClientAddr - 客户端地址public String getLanguage()
public void setLanguage(String Language)
Language - 客户端SDK语言public String getVersion()
public void setVersion(String Version)
Version - 客户端SDK版本public Long getConsumerLag()
public void setConsumerLag(Long ConsumerLag)
ConsumerLag - 客户端消费堆积
注意:此字段可能返回 null,表示取不到有效值。public String getChannelProtocol()
public void setChannelProtocol(String ChannelProtocol)
ChannelProtocol - 消费者客户端类型,枚举值如下:
- grpc:GRPC协议
- remoting:Remoting协议
- http:HTTP协议
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.