org.apache.jetspeed.cache.impl
Class EhCacheImpl
java.lang.Object
org.apache.jetspeed.cache.impl.EhCacheImpl
- All Implemented Interfaces:
- org.apache.jetspeed.cache.JetspeedCache
- Direct Known Subclasses:
- EhCacheDistributedImpl, EhDecorationContentCacheImpl, EhPortletContentCacheImpl, EhPortletWindowCache
public class EhCacheImpl
- extends Object
- implements org.apache.jetspeed.cache.JetspeedCache
Constructor Summary |
EhCacheImpl(net.sf.ehcache.Ehcache ehcache)
|
ehcache
protected net.sf.ehcache.Ehcache ehcache
localListeners
protected List localListeners
remoteListeners
protected List remoteListeners
EhCacheImpl
public EhCacheImpl(net.sf.ehcache.Ehcache ehcache)
get
public org.apache.jetspeed.cache.CacheElement get(Object key)
- Specified by:
get
in interface org.apache.jetspeed.cache.JetspeedCache
getTimeToIdleSeconds
public int getTimeToIdleSeconds()
- Specified by:
getTimeToIdleSeconds
in interface org.apache.jetspeed.cache.JetspeedCache
getTimeToLiveSeconds
public int getTimeToLiveSeconds()
- Specified by:
getTimeToLiveSeconds
in interface org.apache.jetspeed.cache.JetspeedCache
isKeyInCache
public boolean isKeyInCache(Object key)
- Specified by:
isKeyInCache
in interface org.apache.jetspeed.cache.JetspeedCache
put
public void put(org.apache.jetspeed.cache.CacheElement element)
- Specified by:
put
in interface org.apache.jetspeed.cache.JetspeedCache
createElement
public org.apache.jetspeed.cache.CacheElement createElement(Object key,
Object content)
- Specified by:
createElement
in interface org.apache.jetspeed.cache.JetspeedCache
remove
public boolean remove(Object key)
- Specified by:
remove
in interface org.apache.jetspeed.cache.JetspeedCache
removeQuiet
public boolean removeQuiet(Object key)
- Specified by:
removeQuiet
in interface org.apache.jetspeed.cache.JetspeedCache
clear
public void clear()
- Specified by:
clear
in interface org.apache.jetspeed.cache.JetspeedCache
evictContentForUser
public void evictContentForUser(String username)
- Specified by:
evictContentForUser
in interface org.apache.jetspeed.cache.JetspeedCache
evictContentForSession
public void evictContentForSession(String session)
- Specified by:
evictContentForSession
in interface org.apache.jetspeed.cache.JetspeedCache
addEventListener
public void addEventListener(org.apache.jetspeed.cache.JetspeedCacheEventListener listener,
boolean local)
- Specified by:
addEventListener
in interface org.apache.jetspeed.cache.JetspeedCache
removeEventListener
public void removeEventListener(org.apache.jetspeed.cache.JetspeedCacheEventListener listener,
boolean local)
- Specified by:
removeEventListener
in interface org.apache.jetspeed.cache.JetspeedCache
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
dispose
public void dispose()
notifyListeners
protected void notifyListeners(boolean local,
int action,
Object key,
Object value)
createCacheKey
public org.apache.jetspeed.cache.ContentCacheKey createCacheKey(org.apache.jetspeed.request.RequestContext rc,
String windowId)
- Specified by:
createCacheKey
in interface org.apache.jetspeed.cache.JetspeedCache
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.