TsgcWSPClient_AMQPMethods › UnBindQueueEx

UnBindQueueEx Method

Removes a binding synchronously and returns True on queue.unbind-ok.

Syntax

function UnBindQueueEx(const aChannel, aQueue, aExchange, aRoutingKey: string; aTimeout: Integer = CS_AMQP_DEFAULT_TIMEOUT; const aArguments: string = ''): Boolean;

Parameters

NameTypeDescription
aChannelconst stringName of the open AMQP channel on which the operation is issued.
aQueueconst stringName of the queue.
aExchangeconst stringName of the exchange.
aRoutingKeyconst stringRouting key used to match messages published to the exchange.
aTimeoutIntegerMaximum time in milliseconds to wait for the broker confirmation before returning False.
aArgumentsconst stringOptional JSON-encoded field-table with additional arguments.

Return Value

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

Remarks

Extended synchronous variant of UnBindQueue. Waits for queue.unbind-ok or times out.

Example

sgcWSPClient_AMQP1.UnBindQueueEx('ch1', 'orders', 'ex.orders', 'orders.new');

Back to Methods