接口 ProducerStats

所有超级接口:
Serializable
所有已知子接口:
PartitionedTopicProducerStats

@Public @Evolving @Deprecated public interface ProducerStats extends Serializable
已过时。
Producer statistics recorded by client.

All the stats are relative to the last recording period. The interval of the stats refreshes is configured with ClientBuilder.statsInterval(long, java.util.concurrent.TimeUnit) with a default of 1 minute.

  • 方法详细资料

    • getNumMsgsSent

      long getNumMsgsSent()
      已过时。
      返回:
      the number of messages published in the last interval
    • getNumBytesSent

      long getNumBytesSent()
      已过时。
      返回:
      the number of bytes sent in the last interval
    • getNumSendFailed

      long getNumSendFailed()
      已过时。
      返回:
      the number of failed send operations in the last interval
    • getNumAcksReceived

      long getNumAcksReceived()
      已过时。
      返回:
      the number of send acknowledges received by broker in the last interval
    • getSendMsgsRate

      double getSendMsgsRate()
      已过时。
      返回:
      the messages send rate in the last interval
    • getSendBytesRate

      double getSendBytesRate()
      已过时。
      返回:
      the bytes send rate in the last interval
    • getSendLatencyMillis50pct

      double getSendLatencyMillis50pct()
      已过时。
      返回:
      the 50th percentile of the send latency in milliseconds for the last interval
    • getSendLatencyMillis75pct

      double getSendLatencyMillis75pct()
      已过时。
      返回:
      the 75th percentile of the send latency in milliseconds for the last interval
    • getSendLatencyMillis95pct

      double getSendLatencyMillis95pct()
      已过时。
      返回:
      the 95th percentile of the send latency in milliseconds for the last interval
    • getSendLatencyMillis99pct

      double getSendLatencyMillis99pct()
      已过时。
      返回:
      the 99th percentile of the send latency in milliseconds for the last interval
    • getSendLatencyMillis999pct

      double getSendLatencyMillis999pct()
      已过时。
      返回:
      the 99.9th percentile of the send latency in milliseconds for the last interval
    • getSendLatencyMillisMax

      double getSendLatencyMillisMax()
      已过时。
      返回:
      the max send latency in milliseconds for the last interval
    • getTotalMsgsSent

      long getTotalMsgsSent()
      已过时。
      返回:
      the total number of messages published by this producer
    • getTotalBytesSent

      long getTotalBytesSent()
      已过时。
      返回:
      the total number of bytes sent by this producer
    • getTotalSendFailed

      long getTotalSendFailed()
      已过时。
      返回:
      the total number of failed send operations
    • getTotalAcksReceived

      long getTotalAcksReceived()
      已过时。
      返回:
      the total number of send acknowledges received by broker
    • getPendingQueueSize

      int getPendingQueueSize()
      已过时。
      返回:
      current pending send-message queue size of the producer
    • getPartitionStats

      default Map<String,ProducerStats> getPartitionStats()
      已过时。
      返回:
      stats for each partition if topic is partitioned topic