|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.hibernate.EhCache
@Deprecated public final class EhCache
EHCache plugin for Hibernate.
EHCache uses aMemoryStore
and a
DiskStore
.
The DiskStore
requires that both keys and values be Serializable
.
However the MemoryStore does not and in ehcache-1.2 nonSerializable Objects are permitted. They are discarded
if an attempt it made to overflow them to Disk or to replicate them to remote cache peers.
Constructor Summary | |
---|---|
EhCache(Ehcache cache)
Deprecated. Creates a new Hibernate pluggable cache by name. |
Method Summary | |
---|---|
boolean |
canLockEntries()
Deprecated. |
void |
clear()
Deprecated. Remove all elements in the cache, but leave the cache in a useable state. |
void |
destroy()
Deprecated. Remove the cache and make it unuseable. |
Object |
get(Object key)
Deprecated. Gets a value of an element which matches the given key. |
long |
getElementCountInMemory()
Deprecated. |
long |
getElementCountOnDisk()
Deprecated. |
String |
getRegionName()
Deprecated. |
long |
getSizeInMemory()
Deprecated. Warning: This method can be very expensive to run. |
int |
getTimeout()
Deprecated. Returns the lock timeout for this cache, which is 60s |
void |
lock(Object key)
Deprecated. |
long |
nextTimestamp()
Deprecated. Gets the next timestamp; |
void |
put(Object key,
Object value)
Deprecated. Puts an object into the cache. |
Object |
read(Object key)
Deprecated. Gets an object from the cache. |
void |
remove(Object key)
Deprecated. Removes the element which matches the key. |
Map |
toMap()
Deprecated. |
String |
toString()
Deprecated. |
void |
unlock(Object key)
Deprecated. |
void |
update(Object key,
Object value)
Deprecated. Updates an object in the cache, or if it does not exist, inserts it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EhCache(Ehcache cache)
cache
- The backing ehcache cache.Method Detail |
---|
public final Object get(Object key) throws CacheException
key
- the key of the element to return.
org.hibernate.cache.CacheException
CacheException
public final Object read(Object key) throws CacheException
key
- an Object value
CacheException
public final void update(Object key, Object value) throws CacheException
key
- an Object keyvalue
- an Object value
CacheException
- if the CacheManager
is shutdown or another Exception
occurs.public final void put(Object key, Object value) throws CacheException
key
- an Object keyvalue
- an Object value
CacheException
- if the CacheManager
is shutdown or another Exception
occurs.public final void remove(Object key) throws CacheException
key
- the key of the element to remove
CacheException
public final void clear() throws CacheException
CacheException
public final void destroy() throws CacheException
CacheException
public final void lock(Object key) throws CacheException
CacheException
public final void unlock(Object key) throws CacheException
CacheException
public final long nextTimestamp()
public final int getTimeout()
public final String getRegionName()
public final long getSizeInMemory()
public final long getElementCountInMemory()
public final long getElementCountOnDisk()
public final Map toMap()
public final boolean canLockEntries()
true
if this cache supports entry locks.public final String toString()
toString
in class Object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |