1 23 24 package com.sun.ejb.containers.util.cache; 25 26 import java.io.*; 27 import java.util.*; 28 import java.util.ArrayList ; 29 30 31 public interface Cache { 32 33 public Object get(Object key); 34 35 public Object put(Object key, Object obj); 36 37 public Object remove(Object key); 38 39 public boolean contains(Object key); 40 41 public Enumeration elements(); 42 43 public void clear(); 44 45 public int size(); 46 47 public int getMaxCacheSize(); 48 49 public int getCacheHits(); 50 51 public int getCacheMisses(); 52 53 public void incrementCacheFailures(Object key); 54 55 public void incrementCacheSuccess(Object key); 56 57 public void incrementCacheFailures(); 58 59 public void incrementCacheSuccess(); 60 61 64 public void destroy(); 65 66 } 67 68 | Popular Tags |