Class LastModifiedCache
- java.lang.Object
-
- org.pentaho.platform.plugin.services.cache.LastModifiedCache
-
- All Implemented Interfaces:
org.hibernate.cache.Cache,org.pentaho.platform.api.cache.ILastModifiedCacheItem
public class LastModifiedCache extends Object implements org.pentaho.platform.api.cache.ILastModifiedCacheItem, org.hibernate.cache.Cache
User: rfellows Date: 10/25/11 Time: 3:53 PM
-
-
Constructor Summary
Constructors Constructor Description LastModifiedCache(org.hibernate.cache.Cache cache)LastModifiedCache(org.hibernate.cache.Cache cache, long lastModified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddestroy()Objectget(Object o)StringgetCacheKey()longgetElementCountInMemory()longgetElementCountOnDisk()longgetLastModified()StringgetRegionName()longgetSizeInMemory()intgetTimeout()voidlock(Object o)longnextTimestamp()voidput(Object o, Object o1)Objectread(Object o)voidremove(Object o)protected voidsetLastModified()voidsetLastModified(long lastModified)MaptoMap()voidunlock(Object o)voidupdate(Object o, Object o1)
-
-
-
Method Detail
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceorg.pentaho.platform.api.cache.ILastModifiedCacheItem
-
setLastModified
public void setLastModified(long lastModified)
-
setLastModified
protected void setLastModified()
-
getCacheKey
public String getCacheKey()
- Specified by:
getCacheKeyin interfaceorg.pentaho.platform.api.cache.ILastModifiedCacheItem
-
read
public Object read(Object o) throws org.hibernate.cache.CacheException
- Specified by:
readin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
get
public Object get(Object o) throws org.hibernate.cache.CacheException
- Specified by:
getin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
put
public void put(Object o, Object o1) throws org.hibernate.cache.CacheException
- Specified by:
putin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
update
public void update(Object o, Object o1) throws org.hibernate.cache.CacheException
- Specified by:
updatein interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
remove
public void remove(Object o) throws org.hibernate.cache.CacheException
- Specified by:
removein interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
clear
public void clear() throws org.hibernate.cache.CacheException- Specified by:
clearin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
destroy
public void destroy() throws org.hibernate.cache.CacheException- Specified by:
destroyin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
lock
public void lock(Object o) throws org.hibernate.cache.CacheException
- Specified by:
lockin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
unlock
public void unlock(Object o) throws org.hibernate.cache.CacheException
- Specified by:
unlockin interfaceorg.hibernate.cache.Cache- Throws:
org.hibernate.cache.CacheException
-
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestampin interfaceorg.hibernate.cache.Cache
-
getTimeout
public int getTimeout()
- Specified by:
getTimeoutin interfaceorg.hibernate.cache.Cache
-
getRegionName
public String getRegionName()
- Specified by:
getRegionNamein interfaceorg.hibernate.cache.Cache
-
getSizeInMemory
public long getSizeInMemory()
- Specified by:
getSizeInMemoryin interfaceorg.hibernate.cache.Cache
-
getElementCountInMemory
public long getElementCountInMemory()
- Specified by:
getElementCountInMemoryin interfaceorg.hibernate.cache.Cache
-
getElementCountOnDisk
public long getElementCountOnDisk()
- Specified by:
getElementCountOnDiskin interfaceorg.hibernate.cache.Cache
-
toMap
public Map toMap()
- Specified by:
toMapin interfaceorg.hibernate.cache.Cache
-
-