TsgcWSPClient_AMQP › Methods › PurgeQueueEx
Purges a queue synchronously and returns True on queue.purge-ok.
function PurgeQueueEx(const aChannel, aQueue: string; aNoWait: 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. |
aQueue | const string | Name of the queue. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
aTimeout | Integer | Maximum time in milliseconds to wait for the broker confirmation before returning False. |
True when the broker acknowledged the purge within aTimeout. (Boolean)
Extended synchronous variant of PurgeQueue. The OnAMQPQueuePurge event reports the number of messages removed by the broker.
sgcWSPClient_AMQP1.PurgeQueueEx('ch1', 'orders');