org.apache.jetspeed.cache.impl
Class EhDecorationContentCacheElementImpl

java.lang.Object
  extended by org.apache.jetspeed.cache.impl.EhDecorationContentCacheElementImpl
All Implemented Interfaces:
org.apache.jetspeed.cache.CacheElement, org.apache.jetspeed.cache.ContentCacheElement

public class EhDecorationContentCacheElementImpl
extends Object
implements org.apache.jetspeed.cache.ContentCacheElement

Wrapper around actual cache element implementation

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
(package private)  org.apache.jetspeed.cache.ContentCacheKey cckey
           
(package private)  net.sf.ehcache.Element element
           
static 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, org.apache.jetspeed.cache.ContentCacheKey cckey)
           
 
Method Summary
 Object getContent()
           
 org.apache.jetspeed.cache.ContentCacheKey getContentCacheKey()
           
 net.sf.ehcache.Element getImplElement()
           
 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

element

net.sf.ehcache.Element element

cckey

org.apache.jetspeed.cache.ContentCacheKey cckey

KEY_SEPARATOR

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

EhDecorationContentCacheElementImpl

public EhDecorationContentCacheElementImpl(net.sf.ehcache.Element element,
                                           org.apache.jetspeed.cache.ContentCacheKey cckey)
Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface org.apache.jetspeed.cache.CacheElement

getContent

public Object getContent()
Specified by:
getContent in interface org.apache.jetspeed.cache.CacheElement

getTimeToIdleSeconds

public int getTimeToIdleSeconds()
Specified by:
getTimeToIdleSeconds in interface org.apache.jetspeed.cache.CacheElement

getTimeToLiveSeconds

public int getTimeToLiveSeconds()
Specified by:
getTimeToLiveSeconds in interface org.apache.jetspeed.cache.CacheElement

isEternal

public boolean isEternal()
Specified by:
isEternal in interface org.apache.jetspeed.cache.CacheElement

getImplElement

public net.sf.ehcache.Element getImplElement()

setEternal

public void setEternal(boolean eternal)
Specified by:
setEternal in interface org.apache.jetspeed.cache.CacheElement

setTimeToIdleSeconds

public void setTimeToIdleSeconds(int timeToIdle)
Specified by:
setTimeToIdleSeconds in interface org.apache.jetspeed.cache.CacheElement

setTimeToLiveSeconds

public void setTimeToLiveSeconds(int timeToLive)
Specified by:
setTimeToLiveSeconds in interface org.apache.jetspeed.cache.CacheElement

getContentCacheKey

public org.apache.jetspeed.cache.ContentCacheKey getContentCacheKey()
Specified by:
getContentCacheKey in interface org.apache.jetspeed.cache.ContentCacheElement


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.