TsgcWSPClient_AMQP › Methods › DeclareQueue
Declares a queue on the broker (queue.declare).
procedure DeclareQueue(const aChannel, aQueue: string; aPassive: Boolean = false; aDurable: Boolean = false; aExclusive: Boolean = false; aAutoDelete: Boolean = false; aNoWait: Boolean = false; const aArguments: string = '');
| 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. |
aPassive | Boolean | When True the broker checks whether the object exists and raises an error if it does not, without creating it. |
aDurable | Boolean | When True the object survives broker restarts. |
aExclusive | Boolean | When True the queue is restricted to the declaring connection and deleted on disconnect. |
aAutoDelete | Boolean | When True the object is deleted once the last client stops using it. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
aArguments | const string | Optional JSON-encoded field-table with additional arguments. |
Creates the queue if it does not exist, or validates its properties if it does. Combine aDurable/aExclusive/aAutoDelete to model transient, exclusive or persistent queues.
sgcWSPClient_AMQP1.DeclareQueue('ch1', 'orders', False, True, False, False);