1 4 package com.tc.object.cache; 5 6 import java.util.Collection ; 7 8 import com.tc.text.PrettyPrintable; 9 10 11 14 public interface EvictionPolicy extends PrettyPrintable { 15 21 public boolean add(Cacheable obj); 22 23 30 public Collection getRemovalCandidates(int maxCount); 31 32 38 public void remove(Cacheable obj); 39 40 43 public void markReferenced(Cacheable obj); 44 45 48 public int getCacheCapacity(); 49 50 } | Popular Tags |