|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.hibernate.ccs.EhcacheNonstrictReadWriteCache
@Deprecated public class EhcacheNonstrictReadWriteCache
Ehcache specific non-strict read/write cache concurrency strategy.
This is the Ehcache specific equivalent to Hibernate's NonstrictReadWriteCache.
Field Summary | |
---|---|
protected EhCache |
cache
Deprecated. Ehcache instance this strategy accesses. |
Constructor Summary | |
---|---|
EhcacheNonstrictReadWriteCache()
Deprecated. |
Method Summary | |
---|---|
boolean |
afterInsert(Object key,
Object value,
Object version)
Deprecated. A No-Op. |
boolean |
afterUpdate(Object key,
Object value,
Object version,
org.hibernate.cache.access.SoftLock lock)
Deprecated. Removes the invalidated item. |
void |
clear()
Deprecated. |
void |
destroy()
Deprecated. |
void |
evict(Object key)
Deprecated. Removes the stale item. |
Object |
get(Object key,
long txTimestamp)
Deprecated. |
org.hibernate.cache.Cache |
getCache()
Deprecated. |
String |
getRegionName()
Deprecated. |
boolean |
insert(Object key,
Object value,
Object currentVersion)
Deprecated. A No-Op, since we are an asynchronous cache concurrency strategy. |
org.hibernate.cache.access.SoftLock |
lock(Object key,
Object version)
Deprecated. Caching is non-strict so soft locks are not implemented. |
boolean |
put(Object key,
Object value,
long txTimestamp,
Object version,
Comparator versionComparator,
boolean minimalPut)
Deprecated. |
void |
release(Object key,
org.hibernate.cache.access.SoftLock lock)
Deprecated. Removes the invalidated item. |
void |
remove(Object key)
Deprecated. |
void |
setCache(org.hibernate.cache.Cache cache)
Deprecated. |
String |
toString()
Deprecated. |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
Deprecated. Removes the invalidated item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected EhCache cache
Constructor Detail |
---|
public EhcacheNonstrictReadWriteCache()
Method Detail |
---|
public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean put(Object key, Object value, long txTimestamp, Object version, Comparator versionComparator, boolean minimalPut) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public org.hibernate.cache.access.SoftLock lock(Object key, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void evict(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean insert(Object key, Object value, Object currentVersion) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void release(Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean afterUpdate(Object key, Object value, Object version, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public String toString()
toString
in class Object
public final void setCache(org.hibernate.cache.Cache cache) throws org.hibernate.cache.CacheException
setCache
in interface org.hibernate.cache.CacheConcurrencyStrategy
org.hibernate.cache.CacheException
- if the underlying cache is not an Ehcachepublic final org.hibernate.cache.Cache getCache()
getCache
in interface org.hibernate.cache.CacheConcurrencyStrategy
public final String getRegionName()
getRegionName
in interface org.hibernate.cache.CacheConcurrencyStrategy
public final void remove(Object key) throws org.hibernate.cache.CacheException
remove
in interface org.hibernate.cache.CacheConcurrencyStrategy
org.hibernate.cache.CacheException
public final void clear() throws org.hibernate.cache.CacheException
clear
in interface org.hibernate.cache.CacheConcurrencyStrategy
org.hibernate.cache.CacheException
public final void destroy()
destroy
in interface org.hibernate.cache.CacheConcurrencyStrategy
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |