001 /* 002 @license.text@ 003 */ 004 package biz.hammurapi.metrics.persistent; 005 006 import biz.hammurapi.cache.Cache; 007 import biz.hammurapi.cache.MemoryCache; 008 import biz.hammurapi.sql.SQLProcessor; 009 010 011 /** 012 * Uses memory sensitive cache to cache periods 013 * @author Pavel Vlasov 014 * @revision $Revision$ 015 */ 016 public class MemoryCachingPeriodFactory extends PeriodFactory { 017 018 /** 019 * @param processor 020 */ 021 public MemoryCachingPeriodFactory(SQLProcessor processor) { 022 super(processor); 023 } 024 025 protected Cache createCache() { 026 return new MemoryCache(getProducer(), null, null); 027 } 028 029 }