TsgcWSPClient_AMQP › Methods › AckMessage
Acknowledges receipt of one or more delivered messages (basic.ack).
procedure AckMessage(const aChannel: string; aDeliveryTag: UInt64; aMultiple: Boolean = false);
| Name | Type | Description |
|---|---|---|
aChannel | const string | Name of the open AMQP channel that delivered the message. |
aDeliveryTag | UInt64 | Server-assigned delivery tag identifying the message (received via OnAMQPBasicDeliver). |
aMultiple | Boolean | When True, acknowledges all messages up to and including aDeliveryTag; when False, only the single message is acknowledged. |
AckMessage is only required when the consumer was registered with no-ack set to False. The broker will redeliver any message for which no acknowledgement is received before the channel or connection closes.
procedure TForm1.sgcWSPClient_AMQP1AMQPBasicDeliver(Sender: TObject;
const aChannel, aConsumerTag: string; aDeliveryTag: UInt64;
aRedelivered: Boolean; const aExchange, aRoutingKey: string);
begin
sgcWSPClient_AMQP1.AckMessage(aChannel, aDeliveryTag);
end;