T - the type of the metric's value@ConsumerType
public interface Gauge<T>
 final Queue<String> queue = new ConcurrentLinkedQueue<String>();
 final Gauge<Integer> queueDepth = new Gauge<Integer>() {
     public Integer getValue() {
         return queue.size();
     }
 };
 
  A Gauge instance should be registered with OSGi ServiceRegistry with Gauge#NAME set
 to Gauge name. Then the Gauge instance would be registered with MetricService via whiteboard
 pattern
| Modifier and Type | Field and Description | 
|---|---|
static String | 
NAME
Service property name which determines the name of the Gauge 
 | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
getValue()
Returns the metric's current value. 
 | 
static final String NAME
T getValue()
Copyright © 2017 The Apache Software Foundation. All rights reserved.