Package com.codahale.metrics.annotation

Examples of com.codahale.metrics.annotation.Counted


    static final String COUNTER_SUFFIX = "counter";
    static final String COUNTER_SUFFIX_MONOTONIC = "current";

    @Nullable
    static MethodInterceptor forMethod(MetricRegistry metricRegistry, Class<?> klass, Method method) {
        final Counted annotation = method.getAnnotation(Counted.class);
        if (annotation != null) {
            final Counter counter = metricRegistry.counter(determineName(annotation, klass, method));
            return new CountedInterceptor(counter, annotation);
        }
        return null;
View Full Code Here

TOP

Related Classes of com.codahale.metrics.annotation.Counted

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.