Show / Hide Table of Contents

    Interface IKafkaProducerStatisticsCallback

    Declares the OnProducerStatistics(KafkaStatistics?, string, KafkaProducer) event handler.

    Namespace: Silverback.Messaging.Broker.Callbacks
    Assembly: Silverback.Integration.Kafka.dll
    Syntax
    public interface IKafkaProducerStatisticsCallback : IBrokerCallback

    Methods

    | Improve this doc View source

    OnProducerStatistics(KafkaStatistics?, string, KafkaProducer)

    Called on statistics events.

    Declaration
    void OnProducerStatistics(KafkaStatistics? statistics, string rawStatistics, KafkaProducer producer)
    Parameters
    Type Name Description
    KafkaStatistics statistics

    The deserialized statistics.

    string rawStatistics

    The raw statistics string.

    KafkaProducer producer

    The related producer instance.

    Remarks

    You can enable statistics and set the statistics interval using the StatisticsIntervalMs configuration property (disabled by default).

    • Improve this doc
    • View source
    In this article
    • Methods
      • OnProducerStatistics(KafkaStatistics?, string, KafkaProducer)
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini