TsgcWSPClient_AMQP › Methods › CancelConsume
Cancels a registered consumer (basic.cancel).
procedure CancelConsume(const aChannel, aConsumerTag: string; aNoWait: Boolean = false);
| 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. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
Stops the broker from sending further deliveries to the given consumer tag. Messages already in flight may still be delivered until the cancel is processed.
sgcWSPClient_AMQP1.CancelConsume('ch1', 'tag-1');