TsgcWSPClient_AMQPEvents › OnAMQPQueueBind

OnAMQPQueueBind Event

Fires when the server confirms that a queue has been bound to an exchange (queue.bind-ok).

Syntax

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

Default Value

Remarks

Raised in response to BindQueue. From this point the exchange will route messages that match the declared routing key (and headers, for header exchanges) to aQueue. It is safe to start consumers or to publish messages to aExchange as soon as this event fires.

Example

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

Back to Events