org.apache.jetspeed.cache.impl
Class EhCacheElementImpl
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element
net.sf.ehcache.Element element
EhCacheElementImpl
public EhCacheElementImpl(net.sf.ehcache.Element element)
EhCacheElementImpl
public EhCacheElementImpl(Serializable key,
Serializable value)
EhCacheElementImpl
public EhCacheElementImpl(Serializable key,
Object value)
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.