public class ConsumerTopicMessageHistogram
extends java.lang.Object
Constructor and Description |
---|
ConsumerTopicMessageHistogram()
Creates and registers a new
Histogram matching the specification of this ConsumerTopicMessageHistogram instance. |
Modifier and Type | Method and Description |
---|---|
void |
observe(double durationSeconds,
java.lang.String producerName,
java.lang.String topicName)
Observes the given message duration and adds the defined labels.
|
void |
unregister()
Unregisters the histogram.
|
public ConsumerTopicMessageHistogram()
Histogram
matching the specification of this ConsumerTopicMessageHistogram
instance. Note that there should be only one registered
instance of this type in the application.public void unregister()
public void observe(double durationSeconds, java.lang.String producerName, java.lang.String topicName)
durationSeconds
- the duration to addproducerName
- the name of the producertopicName
- the name of the topic