TsgcWSPClient_KafkaEvents › OnKafkaDisconnect

OnKafkaDisconnect Event

Fires when the connection to the broker is closed.

Syntax

property OnKafkaDisconnect: TsgcKafkaDisconnectEvent;
// procedure(Sender: TObject; const aCode: Integer) of object

Default Value

Remarks

Fires when the connection to the broker is closed. The aCode argument carries the close code reported for the disconnection.

Example

procedure TForm1.KafkaDisconnect(Sender: TObject; const aCode: Integer);
begin
  Log('Disconnected, code: ' + IntToStr(aCode));
end;

Back to Events