org.apache.jetspeed.cache.impl
Class EhCacheElementImpl

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

public class EhCacheElementImpl
extends java.lang.Object
implements CacheElement


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

Constructor Detail

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)
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


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