466467468469470471472473474
/** * Resets the cache statistics */ public void resetCacheStatistics() { if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; cache.resetStatistics(); } }
411412413414415416417418419420
* @return the capacity */ public int getCapacity() { int capacity = -1; if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; capacity = cache.getMaxCacheSize(); } return capacity; }