|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Gauge
A gauge metric is an instantaneous reading of a particular value. For example the current size of the pending operations queue.
A Gauge can be used before it is registered and there has no input/source set. In this case the readDouble()
and
readDouble()
return 0.
A Gauge can be used after the MetricsRegistry.deregister(Object)
is called. In this case the readDouble()
and
readDouble()
return 0.
Method Summary | |
---|---|
double |
readDouble()
Reads the current available value as a double. |
long |
readLong()
Reads the current available value as a long. |
Methods inherited from interface com.hazelcast.internal.metrics.Metric |
---|
getName, render |
Method Detail |
---|
long readLong()
Math.round(double)
.
If no input is available, or there a problems obtaining a value from the input, 0 is returned.
double readDouble()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |