public void updateCacheSizes ( long max , long current ) { final String methodName = "updateCacheSizes()" ; if ( tc . isDebugEnabled ( ) && null != _maxInMemoryCacheEntryCount && null != _inMemoryCacheEntryCount ) { if ( max != _maxInMemoryCacheEntryCount . getCount ( ) && _inMemoryCacheEntryCount . getCount ( ) != current ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " max=" + max + " current=" + current + " enable=" + this . _enable , this ) ; } if ( _enable ) { if ( _maxInMemoryCacheEntryCount != null ) _maxInMemoryCacheEntryCount . setCount ( max ) ; if ( _inMemoryCacheEntryCount != null ) _inMemoryCacheEntryCount . setCount ( current ) ; } }
Updates statistics using two supplied arguments - maxInMemoryCacheSize and currentInMemoryCacheSize .