TsgcWSPClient_AMQP › Methods › Recover
Asks the broker to redeliver all un-ACKed messages on the channel (basic.recover with synchronous reply).
procedure Recover(const aChannel: string; aRequeue: Boolean = false);
| Name | Type | Description |
|---|---|---|
aChannel | const string | Name of the open AMQP channel on which the operation is issued. |
aRequeue | Boolean | When True the broker puts the message/messages back on the queue; when False they are discarded or dead-lettered. |
Triggers a basic.recover. When aRequeue is True the messages are returned to their original queue for redelivery to any consumer; when False they are redelivered to the same consumer. This overload waits for basic.recover-ok.
sgcWSPClient_AMQP1.Recover('ch1', True);