TsgcWSPClient_AMQP › Methods › DeleteQueueEx
Deletes a queue synchronously and returns True on queue.delete-ok.
function DeleteQueueEx(const aChannel, aQueue: string; aIfUnused: Boolean = false; aIfEmpty: Boolean = false; 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. |
aIfUnused | Boolean | When True the operation proceeds only if the object has no bindings/consumers. |
aIfEmpty | Boolean | When True the queue is deleted only if it contains no messages. |
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 delete within aTimeout. (Boolean)
Extended synchronous variant of DeleteQueue. Returns only after the broker has acknowledged the delete or aTimeout has elapsed.
sgcWSPClient_AMQP1.DeleteQueueEx('ch1', 'orders', True, True);