TsgcWSPClient_AMQP › Methods › OpenChannelEx
Opens a new AMQP channel synchronously, waiting for channel.open-ok.
function OpenChannelEx(const aChannel: string; 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. |
aTimeout | Integer | Maximum time in milliseconds to wait for the broker confirmation before returning False. |
True when the broker opened the channel within aTimeout, False on timeout. (Boolean)
Extended synchronous variant of OpenChannel. Returns once the broker has confirmed the channel is open, or after aTimeout.
if sgcWSPClient_AMQP1.OpenChannelEx('ch1') then
sgcWSPClient_AMQP1.DeclareQueue('ch1', 'orders');