internal ChangeMessageVisibilityResponse ChangeMessageVisibility(ChangeMessageVisibilityRequest request) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return(Invoke <ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ChangeMessageVisibility operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ChangeMessageVisibilityResponse> ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return(Invoke <IRequest, ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public async Task <ChangeMessageVisibilityResponse> ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest request) { request.QueueName = this.QueueName; var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return(await _serviceClient.InvokeAsync <ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller).ConfigureAwait(false)); }
/// <inheritdoc/> public ChangeMessageVisibilityResponse ChangeMessageVisibility(ChangeMessageVisibilityRequest request) { request.QueueName = this.QueueName; var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return(_serviceClient.Invoke <ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller)); }
/// <inheritdoc/> public IAsyncResult BeginChangeMessageVisibility(ChangeMessageVisibilityRequest request, AsyncCallback callback, object state) { request.QueueName = this.QueueName; var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return(_serviceClient.BeginInvoke <ChangeMessageVisibilityRequest>(request, marshaller, unmarshaller, callback, state)); }
public void ChangeMessageVisibilityMarshallTest() { var operation = service_model.FindOperation("ChangeMessageVisibility"); var request = InstantiateClassGenerator.Execute <ChangeMessageVisibilityRequest>(); var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
public void ChangeMessageVisibilityMarshallTest() { var operation = service_model.FindOperation("ChangeMessageVisibility"); var request = InstantiateClassGenerator.Execute<ChangeMessageVisibilityRequest>(); var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>The <c>ChangeMessageVisibility</c> action 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. (For more information visibility timeout, see <a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html">Visibility Timeout</a> in the Amazon SQS /// Developer Guide.)</para> <para>For example, let's say you have a message and its default message visibility timeout is 30 minutes. You could /// call <c>ChangeMessageVisiblity</c> with a value of two hours and the effective timeout would be two hours and 30 minutes. When that time /// comes near you could again extend the time out by calling ChangeMessageVisiblity, but this time the maximum allowed timeout would be 9 hours /// and 30 minutes.</para> <para><b>IMPORTANT:</b>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.</para> /// <para><b>IMPORTANT:</b>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.</para> /// </summary> /// /// <param name="changeMessageVisibilityRequest">Container for the necessary parameters to execute the ChangeMessageVisibility service method on /// AmazonSQS.</param> /// /// <exception cref="T:Amazon.SQS.Model.ReceiptHandleIsInvalidException" /> /// <exception cref="T:Amazon.SQS.Model.MessageNotInflightException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<ChangeMessageVisibilityResponse> ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest changeMessageVisibilityRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(changeMessageVisibilityRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ChangeMessageVisibility operation. /// <seealso cref="Amazon.SQS.IAmazonSQS.ChangeMessageVisibility"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public async Task<ChangeMessageVisibilityResponse> ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the ChangeMessageVisibility operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility operation on AmazonSQSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndChangeMessageVisibility /// operation.</returns> public IAsyncResult BeginChangeMessageVisibility(ChangeMessageVisibilityRequest request, AsyncCallback callback, object state) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return BeginInvoke<ChangeMessageVisibilityRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// 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. (For more information visibility /// timeout, see <a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html">Visibility /// Timeout</a> in the <i>Amazon SQS Developer Guide</i>.) /// /// /// <para> /// For example, let's say you have a message and its default message visibility /// timeout is 30 minutes. You could call <code>ChangeMessageVisiblity</code> with /// a value of two hours and the effective timeout would be two hours and 30 minutes. /// When that time comes near you could again extend the time out by calling ChangeMessageVisiblity, /// but this time the maximum allowed timeout would be 9 hours and 30 minutes. /// </para> /// <note> /// <para> /// There is a 120,000 limit for the number of inflight messages per queue. Messages are /// inflight after they have been received from the queue by a consuming component, but /// have not yet been deleted from the queue. If you reach the 120,000 limit, you will /// receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, /// you should delete the messages from the queue after they have been processed. /// You can also increase the number of queues you use to process the messages. /// </para> /// </note> <important>If you attempt to set the <code>VisibilityTimeout</code> 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> <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 <code>ChangeMessageVisibility</code> /// action.</important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility service method.</param> /// /// <returns>The response from the ChangeMessageVisibility service method, as returned by SQS.</returns> /// <exception cref="MessageNotInflightException"> /// The message referred to is not in flight. /// </exception> /// <exception cref="ReceiptHandleIsInvalidException"> /// The receipt handle provided is not valid. /// </exception> public ChangeMessageVisibilityResponse ChangeMessageVisibility(ChangeMessageVisibilityRequest request) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return Invoke<ChangeMessageVisibilityRequest,ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ChangeMessageVisibility operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<ChangeMessageVisibilityResponse> ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return InvokeAsync<ChangeMessageVisibilityRequest,ChangeMessageVisibilityResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeChangeMessageVisibility(ChangeMessageVisibilityRequest changeMessageVisibilityRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ChangeMessageVisibilityRequestMarshaller().Marshall(changeMessageVisibilityRequest); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the ChangeMessageVisibility operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeMessageVisibility operation on AmazonSQSClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void ChangeMessageVisibilityAsync(ChangeMessageVisibilityRequest request, AmazonServiceCallback<ChangeMessageVisibilityRequest, ChangeMessageVisibilityResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ChangeMessageVisibilityRequest,ChangeMessageVisibilityResponse> responseObject = new AmazonServiceResult<ChangeMessageVisibilityRequest,ChangeMessageVisibilityResponse>((ChangeMessageVisibilityRequest)req, (ChangeMessageVisibilityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ChangeMessageVisibilityRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
IAsyncResult invokeChangeMessageVisibility(ChangeMessageVisibilityRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ChangeMessageVisibilityRequestMarshaller(); var unmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }