Interface IKafkaProducerStatisticsCallback
Declares the On
Namespace: Silverback.Messaging.Broker.Callbacks
Assembly: Silverback.Integration.Kafka.dll
Syntax
public interface IKafkaProducerStatisticsCallback : IBrokerCallback
Methods
| Improve this doc View sourceOnProducerStatistics(KafkaStatistics?, string, KafkaProducer)
Called on statistics events.
Declaration
void OnProducerStatistics(KafkaStatistics? statistics, string rawStatistics, KafkaProducer producer)
Parameters
Type | Name | Description |
---|---|---|
Kafka |
statistics | The deserialized statistics. |
string | rawStatistics | The raw statistics string. |
Kafka |
producer | The related producer instance. |
Remarks
You can enable statistics and set the statistics interval using the StatisticsIntervalMs
configuration property (disabled by default).