TsgcWSPClient_AMQPMethods › Recover

Recover Method

Asks the broker to redeliver all un-ACKed messages on the channel (basic.recover with synchronous reply).

Syntax

procedure Recover(const aChannel: string; aRequeue: Boolean = false);

Parameters

NameTypeDescription
aChannelconst stringName of the open AMQP channel on which the operation is issued.
aRequeueBooleanWhen True the broker puts the message/messages back on the queue; when False they are discarded or dead-lettered.

Remarks

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.

Example

sgcWSPClient_AMQP1.Recover('ch1', True);

Back to Methods