Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.annotation;
An 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.

public @interface Gauge {
The gauge's group.
    String group() default "";

The gauge's type.
    String type() default "";

The gauge's name.
    String name() default "";
New to GrepCode? Check out our FAQ X