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 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy | 
| Long | getMaxNumMessages()Get 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy | 
| Long | getReceiverQueueSize()Get 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率 | 
| String | getSubInitialPosition()Get 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest | 
| String | getSubscriptionName()Get 订阅者的名字 | 
| Long | getTimeout()Get 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy | 
| String | getTopic()Get 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default | 
| void | setMaxNumBytes(Long MaxNumBytes)Set 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy | 
| void | setMaxNumMessages(Long MaxNumMessages)Set 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy | 
| void | setReceiverQueueSize(Long ReceiverQueueSize)Set 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率 | 
| void | setSubInitialPosition(String SubInitialPosition)Set 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest | 
| void | setSubscriptionName(String SubscriptionName)Set 订阅者的名字 | 
| void | setTimeout(Long Timeout)Set 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy | 
| void | setTopic(String Topic)Set 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default | 
| 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 ReceiveMessageRequest()
public ReceiveMessageRequest(ReceiveMessageRequest source)
public String getTopic()
public void setTopic(String Topic)
Topic - 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/defaultpublic String getSubscriptionName()
public void setSubscriptionName(String SubscriptionName)
SubscriptionName - 订阅者的名字public Long getReceiverQueueSize()
public void setReceiverQueueSize(Long ReceiverQueueSize)
ReceiverQueueSize - 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率public String getSubInitialPosition()
public void setSubInitialPosition(String SubInitialPosition)
SubInitialPosition - 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latestpublic Long getMaxNumMessages()
public void setMaxNumMessages(Long MaxNumMessages)
MaxNumMessages - 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicypublic Long getMaxNumBytes()
public void setMaxNumBytes(Long MaxNumBytes)
MaxNumBytes - 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicypublic Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicyCopyright © 2025. All rights reserved.