1 25 26 package org.objectweb.perseus.cache.replacement.lib; 27 28 import org.objectweb.perseus.cache.replacement.api.ReplaceableCacheEntry; 29 30 33 public class MRUReplacementManager extends AbstractReplacementManager { 34 35 38 protected long date; 39 40 public MRUReplacementManager() { 41 date = Long.MAX_VALUE; 42 } 43 44 protected void add(ReplaceableCacheEntry entry) { 45 entry.setCeAge(date--); 46 } 47 48 protected void touch(ReplaceableCacheEntry entry) { 49 entry.setCeAge(date--); 50 } 51 } 52 | Popular Tags |