Class ReceiveMessageRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tdmq.v20200217.models.ReceiveMessageRequest
-
public class ReceiveMessageRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetMaxNumBytes()Get 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicyLonggetMaxNumMessages()Get 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicyLonggetReceiverQueueSize()Get 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率StringgetSubInitialPosition()Get 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, LatestStringgetSubscriptionName()Get 订阅者的名字LonggetTimeout()Get 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicyStringgetTopic()Get 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/defaultvoidsetMaxNumBytes(Long MaxNumBytes)Set 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicyvoidsetMaxNumMessages(Long MaxNumMessages)Set 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicyvoidsetReceiverQueueSize(Long ReceiverQueueSize)Set 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率voidsetSubInitialPosition(String SubInitialPosition)Set 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, LatestvoidsetSubscriptionName(String SubscriptionName)Set 订阅者的名字voidsetTimeout(Long Timeout)Set 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicyvoidsetTopic(String Topic)Set 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/defaultvoidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ReceiveMessageRequest
public ReceiveMessageRequest()
-
ReceiveMessageRequest
public 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.
-
-
Method Detail
-
getTopic
public String getTopic()
Get 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default- Returns:
- Topic 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default
-
setTopic
public void setTopic(String Topic)
Set 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default- Parameters:
Topic- 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default
-
getSubscriptionName
public String getSubscriptionName()
Get 订阅者的名字- Returns:
- SubscriptionName 订阅者的名字
-
setSubscriptionName
public void setSubscriptionName(String SubscriptionName)
Set 订阅者的名字- Parameters:
SubscriptionName- 订阅者的名字
-
getReceiverQueueSize
public Long getReceiverQueueSize()
Get 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率- Returns:
- ReceiverQueueSize 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率
-
setReceiverQueueSize
public void setReceiverQueueSize(Long ReceiverQueueSize)
Set 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率- Parameters:
ReceiverQueueSize- 默认值为1000,consumer接收的消息会首先存储到receiverQueueSize这个队列中,用作调优接收消息的速率
-
getSubInitialPosition
public String getSubInitialPosition()
Get 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest- Returns:
- SubInitialPosition 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest
-
setSubInitialPosition
public void setSubInitialPosition(String SubInitialPosition)
Set 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest- Parameters:
SubInitialPosition- 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest
-
getMaxNumMessages
public Long getMaxNumMessages()
Get 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy- Returns:
- MaxNumMessages 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy
-
setMaxNumMessages
public void setMaxNumMessages(Long MaxNumMessages)
Set 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy- Parameters:
MaxNumMessages- 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy
-
getMaxNumBytes
public Long getMaxNumBytes()
Get 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy- Returns:
- MaxNumBytes 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy
-
setMaxNumBytes
public void setMaxNumBytes(Long MaxNumBytes)
Set 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy- Parameters:
MaxNumBytes- 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy
-
getTimeout
public Long getTimeout()
Get 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy- Returns:
- Timeout 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy
-
setTimeout
public void setTimeout(Long Timeout)
Set 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy- Parameters:
Timeout- 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy
-
-