public class SendBatchMessagesRequest extends AbstractModel
| Constructor and Description | 
|---|
| SendBatchMessagesRequest() | 
| SendBatchMessagesRequest(SendBatchMessagesRequest 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 | getBatchingMaxBytes()Get Maximum allowed size of messages in each batch. | 
| Long | getBatchingMaxMessages()Get Maximum number of messages in each batch. | 
| Long | getBatchingMaxPublishDelay()Get Maximum wait time for each batch, after which the batch will be sent no matter whether the specified number or size of messages in the batch is reached. | 
| Long | getMaxPendingMessages()Get Maximum number of produced messages which can be cached in the memory. | 
| String | getPayload()Get Content of the message to be sent | 
| String | getProducerName()Get Producer name, which must be globally unique. | 
| Long | getSendTimeout()Get Message sending timeout period in seconds. | 
| String | getStringToken()Get String-Type token, which is optional and will be automatically obtained by the system. | 
| String | getTopic()Get Name of the topic to which to send the message. | 
| void | setBatchingMaxBytes(Long BatchingMaxBytes)Set Maximum allowed size of messages in each batch. | 
| void | setBatchingMaxMessages(Long BatchingMaxMessages)Set Maximum number of messages in each batch. | 
| void | setBatchingMaxPublishDelay(Long BatchingMaxPublishDelay)Set Maximum wait time for each batch, after which the batch will be sent no matter whether the specified number or size of messages in the batch is reached. | 
| void | setMaxPendingMessages(Long MaxPendingMessages)Set Maximum number of produced messages which can be cached in the memory. | 
| void | setPayload(String Payload)Set Content of the message to be sent | 
| void | setProducerName(String ProducerName)Set Producer name, which must be globally unique. | 
| void | setSendTimeout(Long SendTimeout)Set Message sending timeout period in seconds. | 
| void | setStringToken(String StringToken)Set String-Type token, which is optional and will be automatically obtained by the system. | 
| void | setTopic(String Topic)Set Name of the topic to which to send 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, toJsonStringpublic SendBatchMessagesRequest()
public SendBatchMessagesRequest(SendBatchMessagesRequest source)
public String getTopic()
public void setTopic(String Topic)
Topic - Name of the topic to which to send 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 getPayload()
public void setPayload(String Payload)
Payload - Content of the message to be sentpublic String getStringToken()
public void setStringToken(String StringToken)
StringToken - String-Type token, which is optional and will be automatically obtained by the system.public String getProducerName()
public void setProducerName(String ProducerName)
ProducerName - Producer name, which must be globally unique. If it is not configured, the system will automatically generate one.public Long getSendTimeout()
public void setSendTimeout(Long SendTimeout)
SendTimeout - Message sending timeout period in seconds. Default value: 30spublic Long getMaxPendingMessages()
public void setMaxPendingMessages(Long MaxPendingMessages)
MaxPendingMessages - Maximum number of produced messages which can be cached in the memory. Default value: 1000public Long getBatchingMaxMessages()
public void setBatchingMaxMessages(Long BatchingMaxMessages)
BatchingMaxMessages - Maximum number of messages in each batch. Default value: 1000 messages/batchpublic Long getBatchingMaxPublishDelay()
public void setBatchingMaxPublishDelay(Long BatchingMaxPublishDelay)
BatchingMaxPublishDelay - Maximum wait time for each batch, after which the batch will be sent no matter whether the specified number or size of messages in the batch is reached. Default value: 10 mspublic Long getBatchingMaxBytes()
public void setBatchingMaxBytes(Long BatchingMaxBytes)
BatchingMaxBytes - Maximum allowed size of messages in each batch. Default value: 128 KBCopyright © 2022. All rights reserved.