Package org.apache.pulsar.common.stats
Class Metrics
java.lang.Object
org.apache.pulsar.common.stats.Metrics
WARNING : do not add any getters as the Jackson parser will output that getter.
You may want to use the ignore annotation provided by jackson parser if you need some getters.
Dimensions map should be unmodifiable and immutable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Metrics
Creates a metrics object with the dimensions map immutable.boolean
getDimension
(String dimensionName) int
hashCode()
void
void
toString()
-
Constructor Details
-
Metrics
public Metrics() -
Metrics
-
-
Method Details
-
create
Creates a metrics object with the dimensions map immutable.- Parameters:
dimensionMap
-- Returns:
-
put
-
getMetrics
-
putAll
-
getDimensions
-
getDimension
-
hashCode
public int hashCode() -
equals
-
toString
-