TsgcWSPClient_STOMP_RabbitMQMethods › UnSubscribeExchange

UnSubscribeExchange Method

Cancels a previous subscription registered with SubscribeExchange.

Syntax

procedure UnSubscribeExchange(const aName, aPattern: String);

Parameters

NameTypeDescription
aNameconst StringName of the exchange passed to the matching SubscribeExchange call.
aPatternconst StringBinding pattern used at subscription time. Must match exactly the value passed to SubscribeExchange; leave empty if the subscription used no pattern.

Remarks

Sends an UNSUBSCRIBE frame for destination /exchange/aName or /exchange/aName/aPattern when a pattern is supplied, removing the binding created at subscription time.

Example

sgcRabbitMQ.UnSubscribeExchange('amq.topic', 'stock.*.eur');

Back to Methods