C# Класс Amazon.SQS.Model.SendMessageBatchRequest

Container for the parameters to the SendMessageBatch operation. Delivers up to ten messages to the specified queue. This is a batch version of SendMessage . For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.

The result of sending each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:

  • #x9

  • #xA

  • #xD

  • #x20 to #xD7FF

  • #xE000 to #xFFFD

  • #x10000 to #x10FFFF

For more information, see RFC1321. If you send any characters that aren't included in this list, your request is rejected.

If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

Наследование: AmazonSQSRequest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SendMessageBatchRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

SendMessageBatchRequest ( string queueUrl, List entries ) : System

Instantiates SendMessageBatchRequest with the parameterized properties

Приватные методы

Метод Описание
IsSetEntries ( ) : bool
IsSetQueueUrl ( ) : bool

Описание методов

SendMessageBatchRequest() публичный Метод

Empty constructor used to set properties independently even when a simple constructor is available
public SendMessageBatchRequest ( ) : System
Результат System

SendMessageBatchRequest() публичный Метод

Instantiates SendMessageBatchRequest with the parameterized properties
public SendMessageBatchRequest ( string queueUrl, List entries ) : System
queueUrl string The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs are case-sensitive.
entries List A list of SendMessageBatchRequestEntry items.
Результат System