AWS.SQS.ISQSQueuePoller.DeleteMessages

Deletes the specified list of messages.

procedure DeleteMessages(const AMessages: TSQSMessages);
__fastcall DeleteMessages(const TSQSMessages AMessages);

File: AWS.SQS.pas 

Namespace: AWS.SQS 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const AMessages: TSQSMessages
Specify a list of messages to delete.

Use this in conjunction with SkipDelete to control which messages are deleted during processing. This should be called within a Poll procedure block.

NOTE: The behaviour of this example is the same as leaving SkipDelete unchanged (false).

var QueueUrl := 'https://...'; var Poller = TSQSQueuePoller.Create(QueueUrl) as ISQSQueuePoller; Poller.SkipDelete := True; Poller.Poll( procedure(const AMessages: TSQSMessages) begin for var LMessage in AMessages do begin // Process the message. end; // Delete the messages. Poller.DeleteMessages(AMessages); end );
Copyright © 2019-2021 Appercept Ltd. All rights reserved.