public class ReceiveMessageRequest extends AbstractModel
Constructor and Description |
---|
ReceiveMessageRequest() |
ReceiveMessageRequest(ReceiveMessageRequest 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 |
---|---|
Long |
getReceiverQueueSize()
Get Default value: 1000.
|
String |
getSubInitialPosition()
Get Default value: Latest.
|
String |
getSubscriptionName()
Get Subscriber name
|
String |
getTopic()
Get Name of the topic which receives the message.
|
void |
setReceiverQueueSize(Long ReceiverQueueSize)
Set Default value: 1000.
|
void |
setSubInitialPosition(String SubInitialPosition)
Set Default value: Latest.
|
void |
setSubscriptionName(String SubscriptionName)
Set Subscriber name
|
void |
setTopic(String Topic)
Set Name of the topic which receives the message.
|
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 ReceiveMessageRequest()
public ReceiveMessageRequest(ReceiveMessageRequest source)
public String getTopic()
public void setTopic(String Topic)
Topic
- Name of the topic which receives the message. It is better to be the full path of the topic, such as `tenant/namespace/topic`. If it is not specified, `public/default` will be used by default.public String getSubscriptionName()
public void setSubscriptionName(String SubscriptionName)
SubscriptionName
- Subscriber namepublic Long getReceiverQueueSize()
public void setReceiverQueueSize(Long ReceiverQueueSize)
ReceiverQueueSize
- Default value: 1000. Messages received by the consumer will first be stored in the `receiverQueueSize` queue to tune the message receiving rate.public String getSubInitialPosition()
public void setSubInitialPosition(String SubInitialPosition)
SubInitialPosition
- Default value: Latest. It is used to determine the position where the consumer initially receives messages. Valid values: Earliest, Latest.Copyright © 2022. All rights reserved.