|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.hibernate.ccs.EhcacheReadOnlyCache
@Deprecated public class EhcacheReadOnlyCache
Ehcache specific read-only cache concurrency strategy.
This is the Ehcache specific equivalent to Hibernate's ReadOnlyCache.
Field Summary | |
---|---|
protected EhCache |
cache
Deprecated. Ehcache instance this strategy accesses. |
Constructor Summary | |
---|---|
EhcacheReadOnlyCache()
Deprecated. |
Method Summary | |
---|---|
boolean |
afterInsert(Object key,
Object value,
Object version)
Deprecated. Inserts the specified item into the cache. |
boolean |
afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Deprecated. Throws UnsupportedOperationException since items in a read-only cache should not be mutated. |
void |
clear()
Deprecated. |
void |
destroy()
Deprecated. |
void |
evict(Object key)
Deprecated. A No-Op, since we are an asynchronous cache concurrency strategy. |
Object |
get(Object key,
long timestamp)
Deprecated. |
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. |
SoftLock |
lock(Object key,
Object version)
Deprecated. Throws UnsupportedOperationException since items in a read-only cache should not be mutated. |
boolean |
put(Object key,
Object value,
long timestamp,
Object version,
Comparator versionComparator,
boolean minimalPut)
Deprecated. |
void |
release(Object key,
SoftLock lock)
Deprecated. Logs an error since items in a read-only cache should not be mutated. |
void |
remove(Object key)
Deprecated. |
void |
setCache(Cache cache)
Deprecated. |
String |
toString()
Deprecated. |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
Deprecated. Throws UnsupportedOperationException since items in a read-only cache should not be mutated. |
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 EhcacheReadOnlyCache()
Method Detail |
---|
public Object get(Object key, long timestamp) throws CacheException
CacheException
public SoftLock lock(Object key, Object version) throws UnsupportedOperationException
UnsupportedOperationException
- alwayspublic boolean put(Object key, Object value, long timestamp, Object version, Comparator versionComparator, boolean minimalPut) throws CacheException
CacheException
public void release(Object key, SoftLock lock)
public boolean afterUpdate(Object key, Object value, Object version, SoftLock lock) throws UnsupportedOperationException
UnsupportedOperationException
- alwayspublic boolean afterInsert(Object key, Object value, Object version) throws CacheException
CacheException
public void evict(Object key) throws CacheException
CacheException
public boolean insert(Object key, Object value, Object currentVersion)
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws UnsupportedOperationException
UnsupportedOperationException
- alwayspublic String toString()
toString
in class Object
public final void setCache(Cache cache) throws CacheException
CacheException
- if the underlying cache is not an Ehcachepublic final Cache getCache()
public final String getRegionName()
public final void remove(Object key) throws CacheException
CacheException
public final void clear() throws CacheException
CacheException
public final void destroy()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |