ehcache

net.sf.ehcache.hibernate.ccs
Class EhcacheNonstrictReadWriteCache

java.lang.Object
  extended by net.sf.ehcache.hibernate.ccs.EhcacheNonstrictReadWriteCache

Deprecated.

@Deprecated
public class EhcacheNonstrictReadWriteCache
extends Object

Ehcache specific non-strict read/write cache concurrency strategy.

This is the Ehcache specific equivalent to Hibernate's NonstrictReadWriteCache.

Author:
Chris Dennis

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, 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. 
 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. 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, SoftLock lock)
          Deprecated. Removes the invalidated item.
 void remove(Object key)
          Deprecated. 
 void setCache(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

cache

protected EhCache cache
Deprecated. 
Ehcache instance this strategy accesses.

Constructor Detail

EhcacheNonstrictReadWriteCache

public EhcacheNonstrictReadWriteCache()
Deprecated. 
Method Detail

get

public Object get(Object key,
                  long txTimestamp)
           throws CacheException
Deprecated. 

Throws:
CacheException

put

public boolean put(Object key,
                   Object value,
                   long txTimestamp,
                   Object version,
                   Comparator versionComparator,
                   boolean minimalPut)
            throws CacheException
Deprecated. 

Throws:
CacheException

lock

public SoftLock lock(Object key,
                     Object version)
              throws CacheException
Deprecated. 
Caching is non-strict so soft locks are not implemented.

Throws:
CacheException

evict

public void evict(Object key)
           throws CacheException
Deprecated. 
Removes the stale item.

Throws:
CacheException

update

public boolean update(Object key,
                      Object value,
                      Object currentVersion,
                      Object previousVersion)
               throws CacheException
Deprecated. 
Removes the invalidated item.

Throws:
CacheException

insert

public boolean insert(Object key,
                      Object value,
                      Object currentVersion)
               throws CacheException
Deprecated. 
A No-Op, since we are an asynchronous cache concurrency strategy.

Throws:
CacheException

release

public void release(Object key,
                    SoftLock lock)
             throws CacheException
Deprecated. 
Removes the invalidated item.

Throws:
CacheException

afterUpdate

public boolean afterUpdate(Object key,
                           Object value,
                           Object version,
                           SoftLock lock)
                    throws CacheException
Deprecated. 
Removes the invalidated item.

Throws:
CacheException

afterInsert

public boolean afterInsert(Object key,
                           Object value,
                           Object version)
                    throws CacheException
Deprecated. 
A No-Op.

Throws:
CacheException

toString

public String toString()
Deprecated. 

Overrides:
toString in class Object

setCache

public final void setCache(Cache cache)
                    throws CacheException
Deprecated. 

Throws:
CacheException - if the underlying cache is not an Ehcache

getCache

public final Cache getCache()
Deprecated. 


getRegionName

public final String getRegionName()
Deprecated. 


remove

public final void remove(Object key)
                  throws CacheException
Deprecated. 

Throws:
CacheException

clear

public final void clear()
                 throws CacheException
Deprecated. 

Throws:
CacheException

destroy

public final void destroy()
Deprecated. 


ehcache

Copyright 2001-2016, Terracotta, Inc.