|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GaugeAn annotation for marking a method of a Guice-provided object as a gauge.
Given a method like this:
\@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.
| Optional Element Summary | |
|---|---|
String |
group
The gauge's group. |
String |
name
The gauge's name. |
String |
type
The gauge's type. |
public abstract String group
public abstract String type
public abstract String name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||