TsgcWSPClient_AMQPEvents › OnAMQPQueueUnBind

OnAMQPQueueUnBind Event

Fires when the server confirms that a queue has been unbound from an exchange (queue.unbind-ok).

Syntax

property OnAMQPQueueUnBind: TsgcAMQPQueueUnBindEvent;
// TsgcAMQPQueueUnBindEvent = procedure(Sender: TObject; const aChannel, aQueue, aExchange: string) of object

Default Value

Remarks

Raised in response to UnBindQueue. After this event the binding between aExchange and aQueue (for the routing key specified on the unbind call) no longer exists, so the exchange will stop delivering matching messages to that queue.

Example

procedure TForm1.oAMQPAMQPQueueUnBind(Sender: TObject;
  const aChannel, aQueue, aExchange: string);
begin
  DoLog(Format('#AMQP Queue %s unbound from exchange %s', [aQueue, aExchange]));
end;

Back to Events