public class Subscription extends AbstractModel
Constructor and Description |
---|
Subscription() |
Subscription(Subscription 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 |
---|---|
Boolean |
getBlockedSubscriptionOnUnackedMsgs()
Get Whether messages are blocked as the limit of unacknowledged messages has been reached.
|
String |
getConnectedSince()
Get The time when the consumer started connecting.
|
String |
getConsumerAddr()
Get Consumer address.
|
String |
getConsumerCount()
Get The number of consumers.
|
String |
getConsumerName()
Get Consumer name.
|
Consumer[] |
getConsumerSets()
Get Set of consumers.
|
ConsumersSchedule[] |
getConsumersScheduleSets()
Get Set of consumption progress information.
|
String |
getCreateTime()
Get Creation time.
|
String |
getEnvironmentId()
Get Environment (namespace) name.
|
Boolean |
getIsOnline()
Get Whether the consumer is online.
|
Long |
getMaxUnackedMsgNum()
Get The maximum number of unacknowledged messages.
|
String |
getMsgBacklog()
Get The number of heaped messages.
|
String |
getMsgRateExpired()
Get Percentage of messages under this subscription that were discarded but not sent after TTL.
|
String |
getMsgRateOut()
Get The total number of messages delivered by the consumer per second.
|
String |
getMsgThroughputOut()
Get The size (in bytes) of messages consumed by the consumer per second.
|
String |
getRemark()
Get Remarks.
|
String |
getSubscriptionName()
Get Subscription name.
|
String |
getSubType()
Get Subscription type.
|
String |
getTopicName()
Get Topic name.
|
String |
getUpdateTime()
Get Last modified.
|
void |
setBlockedSubscriptionOnUnackedMsgs(Boolean BlockedSubscriptionOnUnackedMsgs)
Set Whether messages are blocked as the limit of unacknowledged messages has been reached.
|
void |
setConnectedSince(String ConnectedSince)
Set The time when the consumer started connecting.
|
void |
setConsumerAddr(String ConsumerAddr)
Set Consumer address.
|
void |
setConsumerCount(String ConsumerCount)
Set The number of consumers.
|
void |
setConsumerName(String ConsumerName)
Set Consumer name.
|
void |
setConsumerSets(Consumer[] ConsumerSets)
Set Set of consumers.
|
void |
setConsumersScheduleSets(ConsumersSchedule[] ConsumersScheduleSets)
Set Set of consumption progress information.
|
void |
setCreateTime(String CreateTime)
Set Creation time.
|
void |
setEnvironmentId(String EnvironmentId)
Set Environment (namespace) name.
|
void |
setIsOnline(Boolean IsOnline)
Set Whether the consumer is online.
|
void |
setMaxUnackedMsgNum(Long MaxUnackedMsgNum)
Set The maximum number of unacknowledged messages.
|
void |
setMsgBacklog(String MsgBacklog)
Set The number of heaped messages.
|
void |
setMsgRateExpired(String MsgRateExpired)
Set Percentage of messages under this subscription that were discarded but not sent after TTL.
|
void |
setMsgRateOut(String MsgRateOut)
Set The total number of messages delivered by the consumer per second.
|
void |
setMsgThroughputOut(String MsgThroughputOut)
Set The size (in bytes) of messages consumed by the consumer per second.
|
void |
setRemark(String Remark)
Set Remarks.
|
void |
setSubscriptionName(String SubscriptionName)
Set Subscription name.
|
void |
setSubType(String SubType)
Set Subscription type.
|
void |
setTopicName(String TopicName)
Set Topic name.
|
void |
setUpdateTime(String UpdateTime)
Set Last modified.
|
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 Subscription()
public Subscription(Subscription source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name.public String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- Environment (namespace) name.public String getConnectedSince()
public void setConnectedSince(String ConnectedSince)
ConnectedSince
- The time when the consumer started connecting.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getConsumerAddr()
public void setConsumerAddr(String ConsumerAddr)
ConsumerAddr
- Consumer address.
Note: This field may return null, indicating that no valid values can be obtained.public String getConsumerCount()
public void setConsumerCount(String ConsumerCount)
ConsumerCount
- The number of consumers.
Note: This field may return null, indicating that no valid values can be obtained.public String getConsumerName()
public void setConsumerName(String ConsumerName)
ConsumerName
- Consumer name.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgBacklog()
public void setMsgBacklog(String MsgBacklog)
MsgBacklog
- The number of heaped messages.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgRateExpired()
public void setMsgRateExpired(String MsgRateExpired)
MsgRateExpired
- Percentage of messages under this subscription that were discarded but not sent after TTL.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgRateOut()
public void setMsgRateOut(String MsgRateOut)
MsgRateOut
- The total number of messages delivered by the consumer per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgThroughputOut()
public void setMsgThroughputOut(String MsgThroughputOut)
MsgThroughputOut
- The size (in bytes) of messages consumed by the consumer per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getSubscriptionName()
public void setSubscriptionName(String SubscriptionName)
SubscriptionName
- Subscription name.
Note: This field may return null, indicating that no valid values can be obtained.public Consumer[] getConsumerSets()
public void setConsumerSets(Consumer[] ConsumerSets)
ConsumerSets
- Set of consumers.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsOnline()
public void setIsOnline(Boolean IsOnline)
IsOnline
- Whether the consumer is online.
Note: This field may return null, indicating that no valid values can be obtained.public ConsumersSchedule[] getConsumersScheduleSets()
public void setConsumersScheduleSets(ConsumersSchedule[] ConsumersScheduleSets)
ConsumersScheduleSets
- Set of consumption progress information.
Note: This field may return null, indicating that no valid values can be obtained.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks.
Note: This field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation time.
Note: This field may return null, indicating that no valid values can be obtained.public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last modified.
Note: This field may return null, indicating that no valid values can be obtained.public String getSubType()
public void setSubType(String SubType)
SubType
- Subscription type. Valid values: `Exclusive`, `Shared`, `Failover`, and `Key_Shared`. An empty string or `NULL`: Unknown.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getBlockedSubscriptionOnUnackedMsgs()
public void setBlockedSubscriptionOnUnackedMsgs(Boolean BlockedSubscriptionOnUnackedMsgs)
BlockedSubscriptionOnUnackedMsgs
- Whether messages are blocked as the limit of unacknowledged messages has been reached.
Note: This field may return null, indicating that no valid values can be obtained.public Long getMaxUnackedMsgNum()
public void setMaxUnackedMsgNum(Long MaxUnackedMsgNum)
MaxUnackedMsgNum
- The maximum number of unacknowledged messages.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.