@Deprecated public class EhcacheNonstrictReadWriteCache extends AbstractEhcacheConcurrencyStrategy
This is the Ehcache specific equivalent to Hibernate's NonstrictReadWriteCache.
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG
Deprecated.
|
cache
Constructor and Description |
---|
EhcacheNonstrictReadWriteCache()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
afterInsert(java.lang.Object key,
java.lang.Object value,
java.lang.Object version)
Deprecated.
A No-Op.
|
boolean |
afterUpdate(java.lang.Object key,
java.lang.Object value,
java.lang.Object version,
org.hibernate.cache.access.SoftLock lock)
Deprecated.
Removes the invalidated item.
|
void |
evict(java.lang.Object key)
Deprecated.
Removes the stale item.
|
java.lang.Object |
get(java.lang.Object key,
long txTimestamp)
Deprecated.
|
boolean |
insert(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.SoftLock |
lock(java.lang.Object key,
java.lang.Object version)
Deprecated.
Caching is non-strict so soft locks are not implemented.
|
boolean |
put(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version,
java.util.Comparator versionComparator,
boolean minimalPut)
Deprecated.
|
void |
release(java.lang.Object key,
org.hibernate.cache.access.SoftLock lock)
Deprecated.
Removes the invalidated item.
|
java.lang.String |
toString()
Deprecated.
|
boolean |
update(java.lang.Object key,
java.lang.Object value,
java.lang.Object currentVersion,
java.lang.Object previousVersion)
Deprecated.
Removes the invalidated item.
|
clear, destroy, getCache, getRegionName, remove, setCache
public EhcacheNonstrictReadWriteCache()
public java.lang.Object get(java.lang.Object key, long txTimestamp) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
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.CacheException
org.hibernate.cache.CacheException
public org.hibernate.cache.access.SoftLock lock(java.lang.Object key, java.lang.Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void evict(java.lang.Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean update(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean insert(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void release(java.lang.Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
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.CacheException
org.hibernate.cache.CacheException
public boolean afterInsert(java.lang.Object key, java.lang.Object value, java.lang.Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public java.lang.String toString()
toString
in class java.lang.Object