org.pentaho.platform.plugin.services.cache
Class LastModifiedCache

java.lang.Object
  extended by org.pentaho.platform.plugin.services.cache.LastModifiedCache
All Implemented Interfaces:
org.hibernate.cache.Cache, ILastModifiedCacheItem

public class LastModifiedCache
extends Object
implements ILastModifiedCacheItem, org.hibernate.cache.Cache

User: rfellows Date: 10/25/11 Time: 3:53 PM


Constructor Summary
LastModifiedCache(org.hibernate.cache.Cache cache)
           
LastModifiedCache(org.hibernate.cache.Cache cache, long lastModified)
           
 
Method Summary
 void clear()
           
 void destroy()
           
 Object get(Object o)
           
 String getCacheKey()
          Get the lookup key for this cache item
 long getElementCountInMemory()
           
 long getElementCountOnDisk()
           
 long getLastModified()
          Get the timestamp of the last time this cache item was modified
 String getRegionName()
           
 long getSizeInMemory()
           
 int getTimeout()
           
 void lock(Object o)
           
 long nextTimestamp()
           
 void put(Object o, Object o1)
           
 Object read(Object o)
           
 void remove(Object o)
           
 void setLastModified(long lastModified)
           
 Map toMap()
           
 void unlock(Object o)
           
 void update(Object o, Object o1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastModifiedCache

public LastModifiedCache(org.hibernate.cache.Cache cache)

LastModifiedCache

public LastModifiedCache(org.hibernate.cache.Cache cache,
                         long lastModified)
Method Detail

getLastModified

public long getLastModified()
Description copied from interface: ILastModifiedCacheItem
Get the timestamp of the last time this cache item was modified

Specified by:
getLastModified in interface ILastModifiedCacheItem
Returns:

setLastModified

public void setLastModified(long lastModified)

getCacheKey

public String getCacheKey()
Description copied from interface: ILastModifiedCacheItem
Get the lookup key for this cache item

Specified by:
getCacheKey in interface ILastModifiedCacheItem
Returns:

read

public Object read(Object o)
            throws org.hibernate.cache.CacheException
Specified by:
read in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

get

public Object get(Object o)
           throws org.hibernate.cache.CacheException
Specified by:
get in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

put

public void put(Object o,
                Object o1)
         throws org.hibernate.cache.CacheException
Specified by:
put in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

update

public void update(Object o,
                   Object o1)
            throws org.hibernate.cache.CacheException
Specified by:
update in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

remove

public void remove(Object o)
            throws org.hibernate.cache.CacheException
Specified by:
remove in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

clear

public void clear()
           throws org.hibernate.cache.CacheException
Specified by:
clear in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

destroy

public void destroy()
             throws org.hibernate.cache.CacheException
Specified by:
destroy in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

lock

public void lock(Object o)
          throws org.hibernate.cache.CacheException
Specified by:
lock in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

unlock

public void unlock(Object o)
            throws org.hibernate.cache.CacheException
Specified by:
unlock in interface org.hibernate.cache.Cache
Throws:
org.hibernate.cache.CacheException

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface org.hibernate.cache.Cache

getTimeout

public int getTimeout()
Specified by:
getTimeout in interface org.hibernate.cache.Cache

getRegionName

public String getRegionName()
Specified by:
getRegionName in interface org.hibernate.cache.Cache

getSizeInMemory

public long getSizeInMemory()
Specified by:
getSizeInMemory in interface org.hibernate.cache.Cache

getElementCountInMemory

public long getElementCountInMemory()
Specified by:
getElementCountInMemory in interface org.hibernate.cache.Cache

getElementCountOnDisk

public long getElementCountOnDisk()
Specified by:
getElementCountOnDisk in interface org.hibernate.cache.Cache

toMap

public Map toMap()
Specified by:
toMap in interface org.hibernate.cache.Cache