java.lang.Object | |
↳ | org.mule.modules.sqs.SQSConnector |
![]() |
![]() |
Amazon Simple Queue Service (Amazon SQS) is a distributed queue messaging service introduced by Amazon.com in April of 2006. It supports programmatic sending of messages via web service applications as a way to communicate over the internet. The intent of SQS is to provide a highly scalable hosted message queue that resolves issues arising from the common producer-consumer problem or connectivity between producer and consumer.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
config | |||||||||||
logger | |||||||||||
msgQueue | |||||||||||
msgQueueAsync |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a permission to this message queue.
| |||||||||||
Changes the visibility timeout of a specified message in a queue to a new value.
| |||||||||||
Changes the visibility timeout of multiple messages.
| |||||||||||
Creates a new queue, or returns the URL of an existing one.
| |||||||||||
Deletes the message identified by message object on the queue this object represents.
| |||||||||||
Deletes up to ten messages from the specified queue.
| |||||||||||
Deletes the message queue represented by this object.
| |||||||||||
Gets an approximate number of visible messages for a queue.
| |||||||||||
Gets queue attributes.
| |||||||||||
Returns the URL of an existing queue.
| |||||||||||
Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.
| |||||||||||
Returns a list of your queues.
| |||||||||||
Deletes the messages in a queue specified by the queue URL.
| |||||||||||
Attempts to receive messages from a queue.
| |||||||||||
Removes a permission from this message queue.
| |||||||||||
Sends a message to a specified queue.
| |||||||||||
Delivers up to ten messages to the specified queue.
| |||||||||||
Sets the value of one or more queue attributes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a permission to this message queue.
label | A name for this permission |
---|---|
accountIds | The AWS account ID's for the account to share this queue with |
actions | A list to indicate how much to share (SendMessage, ReceiveMessage, ChangeMessageVisibility, DeleteMessage, GetQueueAttributes) |
queueUrl | Permissions will be added to the queue represented by this URL. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours.
receiptHandle | The receipt handle associated with the message whose visibility timeout should be changed. |
---|---|
visibilityTimeout | The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout. |
queueUrl | The URL of the Amazon SQS queue to take action on. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.
receiptHandles | A list of receipt handles of the messages for which the visibility timeout must be changed. |
---|---|
queueUrl | The URL of the Amazon SQS queue to take action on. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Creates a new queue, or returns the URL of an existing one.
queueName | The name for the queue to be created. |
---|---|
region | The region in which the queue to be created. |
attributes | A map of attributes with their corresponding values. Valid Map Keys: Policy | VisibilityTimeout | MaximumMessageSize | MessageRetentionPeriod | ApproximateNumberOfMessages | ApproximateNumberOfMessagesNotVisible | CreatedTimestamp | LastModifiedTimestamp | QueueArn | ApproximateNumberOfMessagesDelayed | DelaySeconds | ReceiveMessageWaitTimeSeconds | RedrivePolicy |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Deletes the message identified by message object on the queue this object represents.
receiptHandle | Receipt handle of the message to be deleted |
---|---|
queueUrl | The URL of the queue to delete messages from |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage.
receiptHandles | A list of receipt handles for the messages to be deleted. |
---|---|
queueUrl | The URL of the queue to delete messages as a batch from. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Deletes the message queue represented by this object. Will delete non-empty queue.
queueUrl | The URL of the queue to delete. |
---|
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Gets an approximate number of visible messages for a queue.
queueUrl | The URL of the queue |
---|
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Gets queue attributes. This is provided to expose the underlying functionality.
attributeNames | A list of attribute retrieve information for. |
---|---|
queueUrl | The URL of the Amazon SQS queue to take action on. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Returns the URL of an existing queue.
queueName | The name of the queue whose URL must be fetched. |
---|---|
queueOwnerAWSAccountId | The AWS account ID of the owner that created the queue. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.
queueUrl | The queue URL of a dead letter queue. |
---|
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Returns a list of your queues. The maximum number of queues that can be returned is 1000.
queueNamePrefix | A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. |
---|
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Deletes the messages in a queue specified by the queue URL.
queueUrl | The queue URL where messages are to be fetched from. |
---|
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Attempts to receive messages from a queue. Every attribute of the incoming messages will be added as inbound properties. Also the following properties will also be added:
sqs.message.id = containing the message identification sqs.message.receipt.handle = containing the message identificationcallback | Callback to call when new messages are available. |
---|---|
visibilityTimeout | The duration (in seconds) the retrieved messages are hidden from subsequent calls to retrieve. |
preserveMessages | Flag that indicates if you want to preserve the messages in the queue. False by default, so the messages are going to be deleted. |
numberOfMessages | The number of messages to be retrieved on each call (10 messages max). By default, 1 message will be retrieved. |
queueUrl | The queue URL where messages are to be fetched from. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Removes a permission from this message queue.
label | A name for the permission to be removed |
---|---|
queueUrl | Permissions will be deleted from the queue represented by this URL. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Sends a message to a specified queue. The message must be between 1 and 256K bytes long.
message | The message body to send. |
---|---|
delaySeconds | The number of seconds (0 to 900 - 15 minutes) to delay a specific message. |
messageAttributes | A map of typed key-value pairs to be sent as message attributes. A value, key and data type must be specified for each entry. |
queueUrl | The queue where the message is to be sent. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Delivers up to ten messages to the specified queue. This is a batch version of SendMessage
messages | A list of SendMessageBatchRequestEntry items. |
---|---|
queueUrl | The queue where the message is to be sent. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|
Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.
attributes | A map of attributes to set. |
---|---|
queueUrl | The URL of the queue. |
SQSConnectorException | If any internal errors are encountered inside the connector while attempting to make the request or handle the response. For example if a network connection is not available. |
---|