Official Content

The MessageOptions Structured Data Type is defined under the GeneXusMessagingQueue.SimpleQueue module and allows you to make general settings when using the Queue API.

image_2022915185543_1_png

Depending on the method and the provider, the meaning of the property may vary.

Warning: The recommendation for using any of these properties is to check the documentation of the corresponding provider.

  Azure Storage Queue AWS SQS
MaxNumberOfMessages Receive messages method:
A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of 32. See this reference.
 
Receive messages method:
The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1. See this reference.
WaitTimeout ----

Receive method:
In the documentation of SQS is called WaitTimeSeconds
The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages. See this reference.

See also this doc. 

VisibilityTimeout

Send method:
The visibility timeout specifies how long the message should be invisible to Dequeue and Peek operations.

Receive method:
Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds.

 

Receive method:
The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved.
Follow this link
TimeToLive

Send method:

Specifies the time-to-live interval for the message, in seconds. See more information here.

----
DelaySeconds ----

Send method:

The length of time, in seconds, for which to delay a specific message. For more information see here.

ReceiveRequestAttemptId ---- Receive method:

This parameter applies only to FIFO (first-in-first-out) queues.
The token used for deduplication of Receive message calls. See this reference.


The following do not correspond to any property of the provider's.
 

  Azure Storage Queue AWS SQS
ReceiveMessageAttributes   Receive method:

Return the message attributes of the message retrieved.

DeleteConsumedMessages

Receive method:

Delete the message after being received, thus, removing it from the queue.

 

Availability

This feature is available since GeneXus 18.

 

Last update: January 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant