TsgcWSPClient_AMQP › Methods › CancelConsumeEx
Cancels a consumer synchronously and returns True on basic.cancel-ok.
function CancelConsumeEx(const aChannel, aConsumerTag: 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. |
aConsumerTag | const string | Consumer identifier returned by Consume / ConsumeEx. |
aTimeout | Integer | Maximum time in milliseconds to wait for the broker confirmation before returning False. |
True when the broker acknowledged the cancel within aTimeout. (Boolean)
Extended synchronous variant of CancelConsume. Blocks until the broker confirms the cancellation or until aTimeout expires.
sgcWSPClient_AMQP1.CancelConsumeEx('ch1', 'tag-1');