TsgcWSPClient_AMQP › Methods › BindQueue
Binds a queue to an exchange using a routing key (queue.bind).
procedure BindQueue(const aChannel, aQueue, aExchange, aRoutingKey: string; aNoWait: Boolean = false; const aArguments: string = '');
| Name | Type | Description |
|---|---|---|
aChannel | const string | Name of the open AMQP channel on which the bind is issued. |
aQueue | const string | Name of the queue to bind. |
aExchange | const string | Name of the exchange the queue will be bound to. |
aRoutingKey | const string | Routing key pattern used to match messages published to the exchange. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the bind. |
aArguments | const string | Optional JSON-encoded field-table with additional binding arguments (for example headers-exchange selectors). |
Fire-and-forget variant. The exchange and the queue must already exist on the broker, otherwise the channel is closed with an error. Use BindQueueEx when you need a synchronous confirmation.
sgcWSPClient_AMQP1.BindQueue('ch1', 'orders', 'ex.orders', 'orders.new');