AWS.SQS.ISQSQueuePoller.Poll

Polls for messages.

procedure Poll(const AHandler: TSQSQueuePollerHandler);
__fastcall Poll(const TSQSQueuePollerHandler AHandler);

File: AWS.SQS.pas 

Namespace: AWS.SQS 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const AHandler: TSQSQueuePollerHandler
Provide a handler method for processing messages.

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.