The
For example, let's say you have a message and its default message visibility timeout is 30 minutes. You could
call
IMPORTANT:If you attempt to set the VisibilityTimeout to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining.
IMPORTANT:Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the ChangeMessageVisibility action.
Inheritance Hierarchy
Amazon.Runtime.AmazonWebServiceRequest
Amazon.SQS.Model.ChangeMessageVisibilityRequest
Namespace: Amazon.SQS.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class ChangeMessageVisibilityRequest : AmazonWebServiceRequest IRequestEvents
The ChangeMessageVisibilityRequest type exposes the following members
Constructors
| Name | Description | |
|---|---|---|
|
ChangeMessageVisibilityRequest() |
Properties
| Name | Description | |
|---|---|---|
|
QueueUrl | The URL of the SQS queue to take action on. |
|
ReceiptHandle | The receipt handle associated with the message whose visibility timeout should be changed. |
|
VisibilityTimeout | The new value (in seconds) for the message's visibility timeout. |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8