AWS.SQS.TSQSQueuePoller.DeleteMessage

Deletes the specified message.

procedure DeleteMessage(const AMessage: ISQSMessage);
__fastcall DeleteMessage(const ISQSMessage AMessage);

File: AWS.SQS.pas 

Namespace: AWS.SQS 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const AMessage: ISQSMessage
Specify the message 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.

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 then delete it when you're done. Poller.DeleteMessage(LMessage); end; end );
Copyright © 2019-2021 Appercept Ltd. All rights reserved.