AWS.SQS.TSQSQueuePoller
AWS_SQS_TSQSQueuePollerAWS_SQS_TSQSQueuePoller

A utility class for long polling messages in a loop.

TSQSQueuePoller = class(TInterfacedObject, ISQSQueuePoller);
class TSQSQueuePoller : public TInterfacedObject, public ISQSQueuePoller;

File: AWS.SQS.pas 

Namespace: AWS.SQS 

Module: Appercept AWS SDK for Delphi 

Messages are automatically deleted from the queue at the end of the given Poll procedure. Use SkipDelete property to change this behaviour.

var QueueUrl := 'https://...'; var Poller = TSQSQueuePoller.Create(QueueUrl) as ISQSQueuePoller; Poller.Poll( procedure(const AMessages: TSQSMessages) begin // Do something with AMessages. end );
Copyright © 2019-2021 Appercept Ltd. All rights reserved.