@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface Gauge
\@Gauge(name = "queueSize")
public int getQueueSize() {
return queue.size;
}
A gauge for the defining class with the name queueSize
will be created which uses the
annotated method's return value as its value.Copyright © 2014. All Rights Reserved.