TsgcWSPClient_STOMP_RabbitMQ › Methods › UnSubscribeExchange
Cancels a previous subscription registered with SubscribeExchange.
procedure UnSubscribeExchange(const aName, aPattern: String);
| Name | Type | Description |
|---|---|---|
aName | const String | Name of the exchange passed to the matching SubscribeExchange call. |
aPattern | const String | Binding pattern used at subscription time. Must match exactly the value passed to SubscribeExchange; leave empty if the subscription used no pattern. |
Sends an UNSUBSCRIBE frame for destination /exchange/aName or /exchange/aName/aPattern when a pattern is supplied, removing the binding created at subscription time.
sgcRabbitMQ.UnSubscribeExchange('amq.topic', 'stock.*.eur');