Methods Summary |
---|
public boolean | afterInsert(java.lang.Object key, java.lang.Object value, java.lang.Object version)Do nothing.
return false;
|
public boolean | afterUpdate(java.lang.Object key, java.lang.Object value, java.lang.Object version, SoftLock lock)Invalidate the item (again, for safety).
release( key, lock );
return false;
|
public void | clear()
if ( log.isDebugEnabled() ) {
log.debug( "Clearing" );
}
cache.clear();
|
public void | destroy()
try {
cache.destroy();
}
catch ( Exception e ) {
log.warn( "could not destroy cache", e );
}
|
public void | evict(java.lang.Object key)Invalidate the item
if ( log.isDebugEnabled() ) {
log.debug( "Invalidating: " + key );
}
cache.remove( key );
|
public java.lang.Object | get(java.lang.Object key, long txTimestamp)Get the most recent version, if available.
if ( log.isDebugEnabled() ) {
log.debug( "Cache lookup: " + key );
}
Object result = cache.get( key );
if ( result != null ) {
log.debug( "Cache hit" );
}
else {
log.debug( "Cache miss" );
}
return result;
|
public Cache | getCache()
return cache;
|
public java.lang.String | getRegionName()
return cache.getRegionName();
|
public boolean | insert(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion)Invalidate the item
return false;
|
public SoftLock | lock(java.lang.Object key, java.lang.Object version)Do nothing.
return null;
|
public boolean | put(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, java.util.Comparator versionComparator, boolean minimalPut)Add an item to the cache.
if ( minimalPut && cache.get( key ) != null ) {
if ( log.isDebugEnabled() ) {
log.debug( "item already cached: " + key );
}
return false;
}
if ( log.isDebugEnabled() ) {
log.debug( "Caching: " + key );
}
cache.put( key, value );
return true;
|
public void | release(java.lang.Object key, SoftLock lock)Invalidate the item (again, for safety).
if ( log.isDebugEnabled() ) {
log.debug( "Invalidating (again): " + key );
}
cache.remove( key );
|
public void | remove(java.lang.Object key)
if ( log.isDebugEnabled() ) {
log.debug( "Removing: " + key );
}
cache.remove( key );
|
public void | setCache(Cache cache)
this.cache = cache;
|
public java.lang.String | toString()
return cache + "(nonstrict-read-write)";
|
public boolean | update(java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion)Do nothing.
evict( key );
return false;
|