Package org.apache.pulsar.client.api
Interface ProducerStats
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
PartitionedTopicProducerStats
Deprecated.
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.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.long
Deprecated.long
Deprecated.long
Deprecated.default Map<String,
ProducerStats> Deprecated.int
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.long
Deprecated.long
Deprecated.long
Deprecated.long
Deprecated.
-
Method Details
-
getNumMsgsSent
long getNumMsgsSent()Deprecated.- Returns:
- the number of messages published in the last interval
-
getNumBytesSent
long getNumBytesSent()Deprecated.- Returns:
- the number of bytes sent in the last interval
-
getNumSendFailed
long getNumSendFailed()Deprecated.- Returns:
- the number of failed send operations in the last interval
-
getNumAcksReceived
long getNumAcksReceived()Deprecated.- Returns:
- the number of send acknowledges received by broker in the last interval
-
getSendMsgsRate
double getSendMsgsRate()Deprecated.- Returns:
- the messages send rate in the last interval
-
getSendBytesRate
double getSendBytesRate()Deprecated.- Returns:
- the bytes send rate in the last interval
-
getSendLatencyMillis50pct
double getSendLatencyMillis50pct()Deprecated.- Returns:
- the 50th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis75pct
double getSendLatencyMillis75pct()Deprecated.- Returns:
- the 75th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis95pct
double getSendLatencyMillis95pct()Deprecated.- Returns:
- the 95th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis99pct
double getSendLatencyMillis99pct()Deprecated.- Returns:
- the 99th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis999pct
double getSendLatencyMillis999pct()Deprecated.- Returns:
- the 99.9th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillisMax
double getSendLatencyMillisMax()Deprecated.- Returns:
- the max send latency in milliseconds for the last interval
-
getTotalMsgsSent
long getTotalMsgsSent()Deprecated.- Returns:
- the total number of messages published by this producer
-
getTotalBytesSent
long getTotalBytesSent()Deprecated.- Returns:
- the total number of bytes sent by this producer
-
getTotalSendFailed
long getTotalSendFailed()Deprecated.- Returns:
- the total number of failed send operations
-
getTotalAcksReceived
long getTotalAcksReceived()Deprecated.- Returns:
- the total number of send acknowledges received by broker
-
getPendingQueueSize
int getPendingQueueSize()Deprecated.- Returns:
- current pending send-message queue size of the producer
-
getPartitionStats
Deprecated.- Returns:
- stats for each partition if topic is partitioned topic
-
ClientBuilder.openTelemetry(OpenTelemetry)
to enable stats