private void cleanup ( JobID jobId ) { if ( ! lru . contains ( jobId ) ) { lru . addFirst ( jobId ) ; } if ( lru . size ( ) > this . maxEntries ) { JobID toRemove = lru . removeLast ( ) ; this . jobAccumulators . remove ( toRemove ) ; } }
Cleanup data for the oldest jobs if the maximum number of entries is reached .