/** * Builds a monitor map with a capacity of 100 references. */ public MonitorMap () { super(); this.map = new Cache(); }
/** * Builds a monitor map with a given capacity. */ public MonitorMap (final int cacheSize) { super(); this.map = new Cache(cacheSize); }
/** * Prepares a cache (with a given max number of cached elements). */ public XmlDocumentCache (final int maxSize) { super(); // is caching turned off ? if ( ! Utils.toBoolean (System.getProperty(SP_XML_DOCUMENT_CACHE), true)) { log.info("() XML caching is disabled."); return; } this.cache = new Cache(maxSize); }
public void init (final String serviceName, final ApplicationContext context, final java.util.Map serviceParams) throws ServiceException { super.init(serviceName, context, serviceParams); // // prepare cache this.cacheSize = MapUtils.getAsInt(serviceParams, P_CACHE_SIZE, 500); this.cache = new Cache(this.cacheSize); log.info("init() "+P_CACHE_SIZE+" : "+this.cacheSize); }
(getParams(), P_CACHE_SIZE, DEFAULT_CACHE_SIZE); this.cache = new Cache(cacheSize);