@ Override public CacheManager . CacheStatus getCacheStatus ( ) { int minGen = 0 ; int maxGen = 0 ; long size = 0 ; synchronized ( this . cacheEntries ) { for ( CacheEntry e : this . cacheEntries . values ( ) ) { if ( e != null ) { int g = e . getGeneration ( ) ; minGen = Math . min ( minGen , g ) ; maxGen = Math . max ( maxGen , g ) ; size += e . getSize ( ) ; } } } return new CacheManager . CacheStatus ( size , minGen , maxGen ) ; }
region CacheManager . Client implementation