1 21 22 package org.apache.derby.iapi.services.cache; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.services.daemon.DaemonService; 26 27 import org.apache.derby.iapi.util.Matchable; 28 import org.apache.derby.iapi.util.Operator; 29 30 public interface CacheManager { 31 32 35 public long getMaximumSize(); 36 37 45 public void resize( long newSize) throws StandardException; 46 47 85 public Cacheable find(Object key) throws StandardException; 86 87 111 public Cacheable findCached(Object key) throws StandardException; 112 113 120 public boolean containsKey( Object key); 121 122 129 public void setUsed( Object [] keys); 130 131 172 public Cacheable create(Object key, Object createParameter) throws StandardException; 173 174 179 public void release(Cacheable entry); 180 181 198 public void remove(Cacheable entry) throws StandardException; 199 200 213 public void cleanAll() throws StandardException; 214 215 226 public void clean(Matchable partialKey) throws StandardException; 227 228 242 public void ageOut(); 243 244 253 public void shutdown() throws StandardException; 254 255 259 public void useDaemonService(DaemonService daemon); 260 261 262 280 public boolean discard(Matchable partialKey); 281 282 285 public int getNumberInUse(); 286 287 290 public long[] getCacheStats(); 291 292 295 public void resetCacheStats(); 296 297 305 public void scan( Matchable filter, Operator operator); 306 } 307 | Popular Tags |