public class ReceiveMessageRequest extends AbstractModel
header, skipSign
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 |
getMaxNumBytes()
Get This parameter is used to specify the maximum body size (in bytes) of received messages in a batch for `BatchReceivePolicy`.
|
Long |
getMaxNumMessages()
Get This parameter is used to specify the maximum number of received messages in a batch for `BatchReceivePolicy`.
|
Long |
getReceiverQueueSize()
Get Default value: 1000.
|
String |
getSubInitialPosition()
Get A parameter used to determine the position where the consumer initially receives messages.
|
String |
getSubscriptionName()
Get Subscriber name
|
Long |
getTimeout()
Get This parameter is used to specify the maximum wait timeout (in milliseconds) for receiving a batch of messages for `BatchReceivePolicy`.
|
String |
getTopic()
Get Name of the topic which receives the message.
|
void |
setMaxNumBytes(Long MaxNumBytes)
Set This parameter is used to specify the maximum body size (in bytes) of received messages in a batch for `BatchReceivePolicy`.
|
void |
setMaxNumMessages(Long MaxNumMessages)
Set This parameter is used to specify the maximum number of received messages in a batch for `BatchReceivePolicy`.
|
void |
setReceiverQueueSize(Long ReceiverQueueSize)
Set Default value: 1000.
|
void |
setSubInitialPosition(String SubInitialPosition)
Set A parameter used to determine the position where the consumer initially receives messages.
|
void |
setSubscriptionName(String SubscriptionName)
Set Subscriber name
|
void |
setTimeout(Long Timeout)
Set This parameter is used to specify the maximum wait timeout (in milliseconds) for receiving a batch of messages for `BatchReceivePolicy`.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, 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
- A parameter used to determine the position where the consumer initially receives messages. Valid values: `Earliest` (default), `Latest`.public Long getMaxNumMessages()
public void setMaxNumMessages(Long MaxNumMessages)
MaxNumMessages
- This parameter is used to specify the maximum number of received messages in a batch for `BatchReceivePolicy`. The default value is 0, indicating that `BatchReceivePolicy` is disabled.public Long getMaxNumBytes()
public void setMaxNumBytes(Long MaxNumBytes)
MaxNumBytes
- This parameter is used to specify the maximum body size (in bytes) of received messages in a batch for `BatchReceivePolicy`. The default value is 0, indicating that `BatchReceivePolicy` is disabled.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- This parameter is used to specify the maximum wait timeout (in milliseconds) for receiving a batch of messages for `BatchReceivePolicy`. The default value is 0, indicating that `BatchReceivePolicy` is disabled.Copyright © 2024. All rights reserved.