TsgcWSPClient_AMQP › Methods › DeleteExchangeEx
Deletes an exchange synchronously and returns True on exchange.delete-ok.
function DeleteExchangeEx(const aChannel, aExchange: string; aIfUnused: 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. |
aExchange | const string | Name of the exchange. |
aIfUnused | Boolean | When True the operation proceeds only if the object has no bindings/consumers. |
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 DeleteExchange. Blocks until the broker confirms the delete or until aTimeout expires.
sgcWSPClient_AMQP1.DeleteExchangeEx('ch1', 'ex.orders', True);