protected synchronized boolean findAndRemoveFromGCBuffer ( long expirationTime , int hashcode , int size ) { EvictionTableEntry evt = null ; int i ; for ( i = 0 ; i < garbageCollectorBuffer . size ( ) ; i ++ ) { evt = ( EvictionTableEntry ) garbageCollectorBuffer . get ( i ) ; if ( evt . expirationTime == expirationTime && evt . hashcode == hashcode && evt . size == size ) { break ; } } if ( i < garbageCollectorBuffer . size ( ) ) { this . garbageCollectorBuffer . remove ( i ) ; if ( evt != null ) { cod . htod . evictionEntryPool . add ( evt ) ; } return true ; } return false ; }
Call this method to get and remove the EVT from GC buffer .