org.apache.jetspeed.cache.impl
Class EhCacheElementImpl
java.lang.Object
org.apache.jetspeed.cache.impl.EhCacheElementImpl
- All Implemented Interfaces:
- CacheElement
- Direct Known Subclasses:
- EhCacheDistributedElementImpl
public class EhCacheElementImpl
- extends java.lang.Object
- implements CacheElement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheElementImpl
public EhCacheElementImpl(net.sf.ehcache.Element element)
EhCacheElementImpl
public EhCacheElementImpl(java.io.Serializable key,
java.io.Serializable value)
EhCacheElementImpl
public EhCacheElementImpl(java.io.Serializable key,
java.lang.Object value)
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
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.