TsgcWSPClient_AMQP › Methods › RecoverEx
Synchronous redeliver-all request that returns True when the broker confirms the recover.
function RecoverEx(const aChannel: string; aRequeue: Boolean = false; aTimeout: Integer = CS_AMQP_DEFAULT_TIMEOUT): Boolean;
| 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. |
aTimeout | Integer | Maximum time in milliseconds to wait for the broker confirmation before returning False. |
True when the broker confirmed the recover within aTimeout. (Boolean)
Extended synchronous variant of Recover. Blocks until basic.recover-ok is received or aTimeout expires.
if sgcWSPClient_AMQP1.RecoverEx('ch1', True) then
;