TsgcWSPClient_AMQPMethods › DeleteExchangeEx

DeleteExchangeEx Method

Deletes an exchange synchronously and returns True on exchange.delete-ok.

Syntax

function DeleteExchangeEx(const aChannel, aExchange: string; aIfUnused: Boolean = false; aNoWait: Boolean = false; aTimeout: Integer = CS_AMQP_DEFAULT_TIMEOUT): Boolean;

Parameters

NameTypeDescription
aChannelconst stringName of the open AMQP channel on which the operation is issued.
aExchangeconst stringName of the exchange.
aIfUnusedBooleanWhen True the operation proceeds only if the object has no bindings/consumers.
aNoWaitBooleanWhen True the client does not wait for the broker to confirm the operation.
aTimeoutIntegerMaximum time in milliseconds to wait for the broker confirmation before returning False.

Return Value

True when the broker acknowledged the delete within aTimeout. (Boolean)

Remarks

Extended synchronous variant of DeleteExchange. Blocks until the broker confirms the delete or until aTimeout expires.

Example

sgcWSPClient_AMQP1.DeleteExchangeEx('ch1', 'ex.orders', True);

Back to Methods