1 22 package org.jboss.util; 23 24 32 public interface CachePolicy 33 { 34 47 Object get(Object key); 48 49 61 Object peek(Object key); 62 63 72 void insert(Object key, Object object); 73 74 81 void remove(Object key); 82 83 86 void flush(); 87 88 91 int size(); 92 93 94 95 98 void create() throws Exception ; 99 100 103 void start() throws Exception ; 104 105 108 void stop(); 109 110 113 void destroy(); 114 } 115 | Popular Tags |