protected boolean isEvictionRequired ( ) { boolean evictionRequired = false ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { int size = primaryTable . size ( ) + secondaryTable . size ( ) + tertiaryTable . size ( ) ; Tr . debug ( tc , "The current cache size is " + size + "( " + primaryTable . size ( ) + ", " + secondaryTable . size ( ) + ", " + tertiaryTable . size ( ) + ")" ) ; } if ( entryLimit != 0 && entryLimit != Integer . MAX_VALUE ) { int size = primaryTable . size ( ) + secondaryTable . size ( ) + tertiaryTable . size ( ) ; // If the cache size is greater than its limit, time to purge... if ( size > entryLimit ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "The cache size is " + size + "( " + primaryTable . size ( ) + ", " + secondaryTable . size ( ) + ", " + tertiaryTable . size ( ) + ") which is greater than the cache limit of " + entryLimit + "." ) ; evictionRequired = true ; } } return evictionRequired ; }
Determine if the cache is &quot ; full&quot ; and entries need to be evicted .