org.apache.jetspeed.cache.impl
Class EhDecorationContentCacheElementImpl
java.lang.Object
org.apache.jetspeed.cache.impl.EhDecorationContentCacheElementImpl
- All Implemented Interfaces:
- CacheElement, ContentCacheElement
public class EhDecorationContentCacheElementImpl
- extends java.lang.Object
- implements ContentCacheElement
Wrapper around actual cache element implementation
- Version:
- $Id: $
- Author:
- David Sean Taylor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_SEPARATOR
public static final java.lang.String KEY_SEPARATOR
- See Also:
- Constant Field Values
EhDecorationContentCacheElementImpl
public EhDecorationContentCacheElementImpl(net.sf.ehcache.Element element,
ContentCacheKey cckey)
getKey
public java.lang.Object getKey()
- Specified by:
getKey in interface CacheElement
getContent
public java.lang.Object getContent()
- Specified by:
getContent in interface CacheElement
getTimeToIdleSeconds
public int getTimeToIdleSeconds()
- Specified by:
getTimeToIdleSeconds in interface CacheElement
- Returns:
- the idle time in seconds for this cache element
getTimeToLiveSeconds
public int getTimeToLiveSeconds()
- Specified by:
getTimeToLiveSeconds in interface CacheElement
- Returns:
- the idle time in seconds for this cache element
isEternal
public boolean isEternal()
- Specified by:
isEternal in interface CacheElement
getImplElement
public net.sf.ehcache.Element getImplElement()
setEternal
public void setEternal(boolean eternal)
- Specified by:
setEternal in interface CacheElement
setTimeToIdleSeconds
public void setTimeToIdleSeconds(int timeToIdle)
- Specified by:
setTimeToIdleSeconds in interface CacheElement
setTimeToLiveSeconds
public void setTimeToLiveSeconds(int timeToLive)
- Specified by:
setTimeToLiveSeconds in interface CacheElement
getContentCacheKey
public ContentCacheKey getContentCacheKey()
- Specified by:
getContentCacheKey in interface ContentCacheElement
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.