public class CmqSubscription extends AbstractModel
Constructor and Description |
---|
CmqSubscription() |
CmqSubscription(CmqSubscription 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[] |
getBindingKey()
Get Filtering policy for subscribing to and receiving messages.
|
Long |
getCreateTime()
Get Subscription creation time.
|
String |
getEndpoint()
Get Endpoint that receives notifications, which varies by `protocol`: for HTTP, the endpoint must start with `http://`, and the `host` can be a domain or IP; for `queue`, `queueName` should be entered.
|
String[] |
getFilterTags()
Get Filtering policy selected when a subscription is created:
If `filterType` is 1, `filterTag` will be used for filtering.
|
Long |
getLastModifyTime()
Get Time when the subscription attribute is last modified.
|
Long |
getMsgCount()
Get Number of messages to be delivered in the subscription.
|
String |
getNotifyContentFormat()
Get Push content format.
|
String |
getNotifyStrategy()
Get CMQ push server retry policy in case an error occurs while pushing a message to the endpoint.
|
String |
getProtocol()
Get Subscription protocol.
|
String |
getSubscriptionId()
Get Subscription ID, which will be used during monitoring data pull.
|
String |
getSubscriptionName()
Get Subscription name, which must be unique in the same topic under the same account in the same region.
|
Long |
getTopicOwner()
Get Subscription owner `APPID`.
|
void |
setBindingKey(String[] BindingKey)
Set Filtering policy for subscribing to and receiving messages.
|
void |
setCreateTime(Long CreateTime)
Set Subscription creation time.
|
void |
setEndpoint(String Endpoint)
Set Endpoint that receives notifications, which varies by `protocol`: for HTTP, the endpoint must start with `http://`, and the `host` can be a domain or IP; for `queue`, `queueName` should be entered.
|
void |
setFilterTags(String[] FilterTags)
Set Filtering policy selected when a subscription is created:
If `filterType` is 1, `filterTag` will be used for filtering.
|
void |
setLastModifyTime(Long LastModifyTime)
Set Time when the subscription attribute is last modified.
|
void |
setMsgCount(Long MsgCount)
Set Number of messages to be delivered in the subscription.
|
void |
setNotifyContentFormat(String NotifyContentFormat)
Set Push content format.
|
void |
setNotifyStrategy(String NotifyStrategy)
Set CMQ push server retry policy in case an error occurs while pushing a message to the endpoint.
|
void |
setProtocol(String Protocol)
Set Subscription protocol.
|
void |
setSubscriptionId(String SubscriptionId)
Set Subscription ID, which will be used during monitoring data pull.
|
void |
setSubscriptionName(String SubscriptionName)
Set Subscription name, which must be unique in the same topic under the same account in the same region.
|
void |
setTopicOwner(Long TopicOwner)
Set Subscription owner `APPID`.
|
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 CmqSubscription()
public CmqSubscription(CmqSubscription source)
public String getSubscriptionName()
public void setSubscriptionName(String SubscriptionName)
SubscriptionName
- Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
Note: this field may return null, indicating that no valid values can be obtained.public String getSubscriptionId()
public void setSubscriptionId(String SubscriptionId)
SubscriptionId
- Subscription ID, which will be used during monitoring data pull.
Note: this field may return null, indicating that no valid values can be obtained.public Long getTopicOwner()
public void setTopicOwner(Long TopicOwner)
TopicOwner
- Subscription owner `APPID`.
Note: this field may return null, indicating that no valid values can be obtained.public Long getMsgCount()
public void setMsgCount(Long MsgCount)
MsgCount
- Number of messages to be delivered in the subscription.
Note: this field may return null, indicating that no valid values can be obtained.public Long getLastModifyTime()
public void setLastModifyTime(Long LastModifyTime)
LastModifyTime
- Time when the subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
Note: this field may return null, indicating that no valid values can be obtained.public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getBindingKey()
public void setBindingKey(String[] BindingKey)
BindingKey
- Filtering policy for subscribing to and receiving messages.
Note: this field may return null, indicating that no valid values can be obtained.public String getEndpoint()
public void setEndpoint(String Endpoint)
Endpoint
- Endpoint that receives notifications, which varies by `protocol`: for HTTP, the endpoint must start with `http://`, and the `host` can be a domain or IP; for `queue`, `queueName` should be entered.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getFilterTags()
public void setFilterTags(String[] FilterTags)
FilterTags
- Filtering policy selected when a subscription is created:
If `filterType` is 1, `filterTag` will be used for filtering.
If `filterType` is 2, `bindingKey` will be used for filtering.
Note: this field may return null, indicating that no valid values can be obtained.public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
Note: this field may return null, indicating that no valid values can be obtained.public String getNotifyStrategy()
public void setNotifyStrategy(String NotifyStrategy)
NotifyStrategy
- CMQ push server retry policy in case an error occurs while pushing a message to the endpoint. Valid values:
(1) BACKOFF_RETRY: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message.
(2) EXPONENTIAL_DECAY_RETRY: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value: EXPONENTIAL_DECAY_RETRY.
Note: this field may return null, indicating that no valid values can be obtained.public String getNotifyContentFormat()
public void setNotifyContentFormat(String NotifyContentFormat)
NotifyContentFormat
- Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If `protocol` is `queue`, this value must be `SIMPLIFIED`. If `protocol` is `HTTP`, both values are acceptable, and the default value is `JSON`.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.