1 package org.hibernate.cache; 3 4 import java.util.Map ; 5 6 10 public interface Cache { 11 17 public Object read(Object key) throws CacheException; 18 24 public Object get(Object key) throws CacheException; 25 32 public void put(Object key, Object value) throws CacheException; 33 39 public void update(Object key, Object value) throws CacheException; 40 43 public void remove(Object key) throws CacheException; 44 47 public void clear() throws CacheException; 48 51 public void destroy() throws CacheException; 52 55 public void lock(Object key) throws CacheException; 56 59 public void unlock(Object key) throws CacheException; 60 63 public long nextTimestamp(); 64 67 public int getTimeout(); 68 69 72 public String getRegionName(); 73 74 80 public long getSizeInMemory(); 81 82 87 public long getElementCountInMemory(); 88 89 94 public long getElementCountOnDisk(); 95 96 99 public Map toMap(); 100 } 101 102 103 104 105 106 107 | Popular Tags |