/** * Remove the LedgerEntryPage from the clean page LRU map * * @param lep Ledger Entry Page object */ private void removeFromCleanPageList(LedgerEntryPage lep) { synchronized (lruCleanPageMap) { if (!lep.isClean() || lep.inUse()) { lruCleanPageMap.remove(lep.getEntryKey()); } } }
/** * Add the LedgerEntryPage to the clean page LRU map * * @param lep Ledger Entry Page object */ private void addToCleanPagesList(LedgerEntryPage lep) { synchronized (lruCleanPageMap) { if (lep.isClean() && !lep.inUse()) { lruCleanPageMap.put(lep.getEntryKey(), lep); } } }