1 19 package javax.util.jcache; 20 21 import java.util.Enumeration ; 22 23 24 31 public interface Cache { 32 41 void init(CacheAttributes attributes) 42 throws CacheNotAvailableException; 43 44 51 void open() throws CacheNotAvailableException; 52 53 60 void open(String configFile) throws CacheNotAvailableException; 61 62 69 void close(); 70 71 78 void flush() throws CacheException; 79 80 88 void flushMemory() throws CacheException; 89 90 98 void flushDisk() throws CacheException; 99 100 105 float getVersion(); 106 107 114 boolean isReady(); 115 116 125 boolean isDistributed(); 126 127 136 Enumeration listCacheObjects(); 137 138 152 Enumeration listCacheObjects(String region) 153 throws RegionNotFoundException; 154 155 164 CacheAttributes getAttributes() throws CacheNotAvailableException; 165 166 173 void setLogSeverity(int severity); 174 } 175 | Popular Tags |