Package net.sf.ehcache.hibernate.ccs
Class EhcacheNonstrictReadWriteCache
- java.lang.Object
-
- net.sf.ehcache.hibernate.ccs.EhcacheNonstrictReadWriteCache
-
- All Implemented Interfaces:
org.hibernate.cache.CacheConcurrencyStrategy
@Deprecated public class EhcacheNonstrictReadWriteCache extends java.lang.ObjectDeprecated.Ehcache specific non-strict read/write cache concurrency strategy.This is the Ehcache specific equivalent to Hibernate's NonstrictReadWriteCache.
- Author:
- Chris Dennis
-
-
Constructor Summary
Constructors Constructor Description EhcacheNonstrictReadWriteCache()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanafterInsert(java.lang.Object key, java.lang.Object value, java.lang.Object version)Deprecated.A No-Op.booleanafterUpdate(java.lang.Object key, java.lang.Object value, java.lang.Object version, org.hibernate.cache.access.SoftLock lock)Deprecated.Removes the invalidated item.voidclear()Deprecated.voiddestroy()Deprecated.voidevict(java.lang.Object key)Deprecated.Removes the stale item.java.lang.Objectget(java.lang.Object key, long txTimestamp)Deprecated.org.hibernate.cache.CachegetCache()Deprecated.java.lang.StringgetRegionName()Deprecated.booleaninsert(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion)Deprecated.A No-Op, since we are an asynchronous cache concurrency strategy.org.hibernate.cache.access.SoftLocklock(java.lang.Object key, java.lang.Object version)Deprecated.Caching is non-strict so soft locks are not implemented.booleanput(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, java.util.Comparator versionComparator, boolean minimalPut)Deprecated.voidrelease(java.lang.Object key, org.hibernate.cache.access.SoftLock lock)Deprecated.Removes the invalidated item.voidremove(java.lang.Object key)Deprecated.voidsetCache(org.hibernate.cache.Cache cache)Deprecated.java.lang.StringtoString()Deprecated.booleanupdate(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion)Deprecated.Removes the invalidated item.
-
-
-
Field Detail
-
cache
protected EhCache cache
Deprecated.Ehcache instance this strategy accesses.
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object key, long txTimestamp) throws org.hibernate.cache.CacheExceptionDeprecated.- Throws:
org.hibernate.cache.CacheException
-
put
public boolean put(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, java.util.Comparator versionComparator, boolean minimalPut) throws org.hibernate.cache.CacheExceptionDeprecated.- Throws:
org.hibernate.cache.CacheException
-
lock
public org.hibernate.cache.access.SoftLock lock(java.lang.Object key, java.lang.Object version) throws org.hibernate.cache.CacheExceptionDeprecated.Caching is non-strict so soft locks are not implemented.- Throws:
org.hibernate.cache.CacheException
-
evict
public void evict(java.lang.Object key) throws org.hibernate.cache.CacheExceptionDeprecated.Removes the stale item.- Throws:
org.hibernate.cache.CacheException
-
update
public boolean update(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion) throws org.hibernate.cache.CacheExceptionDeprecated.Removes the invalidated item.- Throws:
org.hibernate.cache.CacheException
-
insert
public boolean insert(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion) throws org.hibernate.cache.CacheExceptionDeprecated.A No-Op, since we are an asynchronous cache concurrency strategy.- Throws:
org.hibernate.cache.CacheException
-
release
public void release(java.lang.Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheExceptionDeprecated.Removes the invalidated item.- Throws:
org.hibernate.cache.CacheException
-
afterUpdate
public boolean afterUpdate(java.lang.Object key, java.lang.Object value, java.lang.Object version, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheExceptionDeprecated.Removes the invalidated item.- Throws:
org.hibernate.cache.CacheException
-
afterInsert
public boolean afterInsert(java.lang.Object key, java.lang.Object value, java.lang.Object version) throws org.hibernate.cache.CacheExceptionDeprecated.A No-Op.- Throws:
org.hibernate.cache.CacheException
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
setCache
public final void setCache(org.hibernate.cache.Cache cache) throws org.hibernate.cache.CacheExceptionDeprecated.- Specified by:
setCachein interfaceorg.hibernate.cache.CacheConcurrencyStrategy- Throws:
org.hibernate.cache.CacheException- if the underlying cache is not an Ehcache
-
getCache
public final org.hibernate.cache.Cache getCache()
Deprecated.- Specified by:
getCachein interfaceorg.hibernate.cache.CacheConcurrencyStrategy
-
getRegionName
public final java.lang.String getRegionName()
Deprecated.- Specified by:
getRegionNamein interfaceorg.hibernate.cache.CacheConcurrencyStrategy
-
remove
public final void remove(java.lang.Object key) throws org.hibernate.cache.CacheExceptionDeprecated.- Specified by:
removein interfaceorg.hibernate.cache.CacheConcurrencyStrategy- Throws:
org.hibernate.cache.CacheException
-
clear
public final void clear() throws org.hibernate.cache.CacheExceptionDeprecated.- Specified by:
clearin interfaceorg.hibernate.cache.CacheConcurrencyStrategy- Throws:
org.hibernate.cache.CacheException
-
destroy
public final void destroy()
Deprecated.- Specified by:
destroyin interfaceorg.hibernate.cache.CacheConcurrencyStrategy
-
-