TsgcWSPClient_AMQPEvents › OnAMQPExchangeDelete

OnAMQPExchangeDelete Event

Fires when the server confirms that an exchange has been deleted (exchange.delete-ok).

Syntax

property OnAMQPExchangeDelete: TsgcAMQPExchangeDeleteEvent;
// TsgcAMQPExchangeDeleteEvent = procedure(Sender: TObject; const aChannel, aExchange: string) of object

Default Value

Remarks

Raised in response to a call to DeleteExchange. aChannel is the channel that carried the delete, aExchange is the exchange that has just been removed. After this event any binding that pointed to the exchange is destroyed and subsequent publishes to that exchange will fail with NOT_FOUND.

Example

procedure TForm1.oAMQPAMQPExchangeDelete(Sender: TObject;
  const aChannel, aExchange: string);
begin
  DoLog(Format('#AMQP Exchange deleted: %s on %s', [aExchange, aChannel]));
end;

Back to Events