Receive Message from queue
Specifies the tag to receive in this request. If this value is not set, it is received from the Queue's default tag
Maximum number of message received
The request will be returned immediately when there is a message that may be read in the queue. Therefore, the actual number of messages received is always less than or equal to this value
If this parameter is not set in the request, the queue parameter is used
Queue Default Value: 100
Legal Range: [1, 100]
See createQueue()
If this parameter is not set in the request, the queue parameter is used
Queue Default Value: 0
Legal Range: [0, 20]
The attributeName and attributeValue can be used to filter messages by custom attributes when they are received. (The custom attribute of the message is defined in sendMessage()
)
If these two parameters are not set, all messages are received.
If attributeName is specified at the same time, the field type in attributeValue is set to "empty", indicating that all messages containing attributesName (case-sensitive) attribute are received.
Otherwise, only those messages for which attributeName, attributeValue.type, and attributeValue.value are matched will be received.
(For the specific fields of the MessageAttribute type, see sendMessage()
)
Note: The user can similarly specify filter conditions when createTag()
. For the difference between the two, see FAQ.
Returned message list. Among which ReceiveMessageResponse specifically includes:
The message identifier, corresponding to the return value of SendMessage
Receives a handle to change the invisible time of a message that is received or to delete a message
Messages received are not deleted immediately after use, and will become readable and received again. At this time, the same messageid is received twice but the receiptHandles are different
Message body
The meta property of the message that contains some of the items in the following
Note Items 8~12 are unique to the dead letter queue
For details of the user-defined attributes that are included with sendMessage, see sendMessage()
.