001package org.avaje.metric; 002 003/** 004 * Cache of MetricNames that share a common base name. 005 * <p> 006 * Typically this is used when the full name of the metric is known at runtime and must be looked 007 * up. Using this cache avoids extra parsing of the metrics name and this MetricNameCache exists for 008 * that performance reason. 009 */ 010public interface MetricNameCache { 011 012 /** 013 * Return the MetricName from the cache creating it if required. 014 * <p> 015 * Typically the name passed in could be a soap operation name or method name. 016 * </p> 017 */ 018 MetricName get(String name); 019 020}