org.apache.jetspeed.cache.impl
Class EhDecorationContentCacheElementImpl

java.lang.Object
  extended by 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

Field Summary
static java.lang.String KEY_SEPARATOR
           
 
Fields inherited from interface org.apache.jetspeed.cache.CacheElement
ActionAdded, ActionChanged, ActionEvicted, ActionExpired, ActionRemoved
 
Constructor Summary
EhDecorationContentCacheElementImpl(net.sf.ehcache.Element element, ContentCacheKey cckey)
           
 
Method Summary
 java.lang.Object getContent()
           
 ContentCacheKey getContentCacheKey()
           
 net.sf.ehcache.Element getImplElement()
           
 java.lang.Object getKey()
           
 int getTimeToIdleSeconds()
           
 int getTimeToLiveSeconds()
           
 boolean isEternal()
           
 void setEternal(boolean eternal)
           
 void setTimeToIdleSeconds(int timeToIdle)
           
 void setTimeToLiveSeconds(int timeToLive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_SEPARATOR

public static final java.lang.String KEY_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

EhDecorationContentCacheElementImpl

public EhDecorationContentCacheElementImpl(net.sf.ehcache.Element element,
                                           ContentCacheKey cckey)
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.