TsgcWSPClient_AMQPMethods › RecoverEx

RecoverEx Method

Synchronous redeliver-all request that returns True when the broker confirms the recover.

Syntax

function RecoverEx(const aChannel: string; aRequeue: Boolean = false; aTimeout: Integer = CS_AMQP_DEFAULT_TIMEOUT): Boolean;

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.
aTimeoutIntegerMaximum time in milliseconds to wait for the broker confirmation before returning False.

Return Value

True when the broker confirmed the recover within aTimeout. (Boolean)

Remarks

Extended synchronous variant of Recover. Blocks until basic.recover-ok is received or aTimeout expires.

Example

if sgcWSPClient_AMQP1.RecoverEx('ch1', True) then
  ;

Back to Methods