private void expireAndRemoveEventually ( final Entry e ) { if ( isKeepAfterExpired ( ) || e . isProcessing ( ) ) { metrics . expiredKept ( ) ; } else { removeEntry ( e ) ; } }
Remove expired from heap and increment statistics . The entry is not removed when there is processing going on in parallel .