org.apache.jetspeed.cache.impl
Class EhCacheElementImpl

java.lang.Object
  extended by org.apache.jetspeed.cache.impl.EhCacheElementImpl
All Implemented Interfaces:
org.apache.jetspeed.cache.CacheElement
Direct Known Subclasses:
EhCacheDistributedElementImpl

public class EhCacheElementImpl
extends Object
implements org.apache.jetspeed.cache.CacheElement


Field Summary
(package private)  net.sf.ehcache.Element element
           
 
Fields inherited from interface org.apache.jetspeed.cache.CacheElement
ActionAdded, ActionChanged, ActionEvicted, ActionExpired, ActionRemoved
 
Constructor Summary
EhCacheElementImpl(net.sf.ehcache.Element element)
           
EhCacheElementImpl(Serializable key, Object value)
           
EhCacheElementImpl(Serializable key, Serializable value)
           
 
Method Summary
 Object getContent()
           
 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
Constructor Detail

EhCacheElementImpl

public EhCacheElementImpl(net.sf.ehcache.Element element)

EhCacheElementImpl

public EhCacheElementImpl(Serializable key,
                          Serializable value)

EhCacheElementImpl

public EhCacheElementImpl(Serializable key,
                          Object value)
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


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