This project has retired. For details please refer to its
Attic page.
EhDecorationContentCacheImpl (Jetspeed-2 Component Manager 2.1.3 API)
org.apache.jetspeed.cache.impl
Class EhDecorationContentCacheImpl
java.lang.Object
org.apache.jetspeed.cache.impl.EhCacheImpl
org.apache.jetspeed.cache.impl.EhDecorationContentCacheImpl
- All Implemented Interfaces:
- org.apache.jetspeed.cache.JetspeedCache, org.apache.jetspeed.cache.JetspeedCacheEventListener, org.apache.jetspeed.cache.JetspeedContentCache
public class EhDecorationContentCacheImpl
- extends EhCacheImpl
- implements org.apache.jetspeed.cache.JetspeedContentCache, org.apache.jetspeed.cache.JetspeedCacheEventListener
Wrapper around actual cache implementation
- Version:
- $Id: $
- Author:
- David Sean Taylor
|
Method Summary |
void |
clear()
|
org.apache.jetspeed.cache.ContentCacheKey |
createCacheKey(org.apache.jetspeed.request.RequestContext context,
String windowId)
|
org.apache.jetspeed.cache.CacheElement |
createElement(Object key,
Object content)
|
String |
createSessionKey(org.apache.jetspeed.request.RequestContext context)
|
void |
evictContentForSession(String session)
|
void |
evictContentForUser(String username)
|
org.apache.jetspeed.cache.CacheElement |
get(Object key)
|
int |
getTimeToIdleSeconds()
|
int |
getTimeToLiveSeconds()
|
void |
invalidate(org.apache.jetspeed.request.RequestContext context)
|
boolean |
isKeyInCache(Object key)
|
void |
notifyElementAdded(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementChanged(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementEvicted(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementExpired(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementRemoved(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
put(org.apache.jetspeed.cache.CacheElement element)
|
boolean |
remove(Object key)
|
(package private) void |
removeUserEntry(String username,
String pipeline,
String windowId)
|
protected net.sf.ehcache.Element |
saveGet(Object key)
|
| Methods inherited from interface org.apache.jetspeed.cache.JetspeedCache |
addEventListener, removeEventListener, removeQuiet |
preferenceCache
org.apache.jetspeed.cache.JetspeedCache preferenceCache
keyGenerator
org.apache.jetspeed.cache.ContentCacheKeyGenerator keyGenerator
KEY_THEME_KEY
public static final String KEY_THEME_KEY
- See Also:
- Constant Field Values
KEY_THEME_KEY_LENGTH
public static final int KEY_THEME_KEY_LENGTH
EhDecorationContentCacheImpl
public EhDecorationContentCacheImpl(net.sf.ehcache.Ehcache ehcache,
org.apache.jetspeed.cache.JetspeedCache preferenceCache,
org.apache.jetspeed.cache.ContentCacheKeyGenerator keyGenerator)
EhDecorationContentCacheImpl
public EhDecorationContentCacheImpl(net.sf.ehcache.Ehcache ehcache,
org.apache.jetspeed.cache.JetspeedCache preferenceCache)
EhDecorationContentCacheImpl
public EhDecorationContentCacheImpl(net.sf.ehcache.Ehcache ehcache)
EhDecorationContentCacheImpl
public EhDecorationContentCacheImpl(net.sf.ehcache.Cache ehcache,
org.apache.jetspeed.cache.ContentCacheKeyGenerator keyGenerator)
notifyElementAdded
public void notifyElementAdded(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementAdded in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementChanged
public void notifyElementChanged(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementChanged in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementEvicted
public void notifyElementEvicted(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementEvicted in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementExpired
public void notifyElementExpired(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementExpired in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementRemoved
public void notifyElementRemoved(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementRemoved in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
removeUserEntry
void removeUserEntry(String username,
String pipeline,
String windowId)
get
public org.apache.jetspeed.cache.CacheElement get(Object key)
- Specified by:
get in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
get in class EhCacheImpl
getTimeToIdleSeconds
public int getTimeToIdleSeconds()
- Specified by:
getTimeToIdleSeconds in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
getTimeToIdleSeconds in class EhCacheImpl
getTimeToLiveSeconds
public int getTimeToLiveSeconds()
- Specified by:
getTimeToLiveSeconds in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
getTimeToLiveSeconds in class EhCacheImpl
isKeyInCache
public boolean isKeyInCache(Object key)
- Specified by:
isKeyInCache in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
isKeyInCache in class EhCacheImpl
put
public void put(org.apache.jetspeed.cache.CacheElement element)
- Specified by:
put in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
put in class EhCacheImpl
createElement
public org.apache.jetspeed.cache.CacheElement createElement(Object key,
Object content)
- Specified by:
createElement in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
createElement in class EhCacheImpl
remove
public boolean remove(Object key)
- Specified by:
remove in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
remove in class EhCacheImpl
evictContentForUser
public void evictContentForUser(String username)
- Specified by:
evictContentForUser in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
evictContentForUser in class EhCacheImpl
evictContentForSession
public void evictContentForSession(String session)
- Specified by:
evictContentForSession in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
evictContentForSession in class EhCacheImpl
clear
public void clear()
- Specified by:
clear in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
clear in class EhCacheImpl
createCacheKey
public org.apache.jetspeed.cache.ContentCacheKey createCacheKey(org.apache.jetspeed.request.RequestContext context,
String windowId)
- Specified by:
createCacheKey in interface org.apache.jetspeed.cache.JetspeedCache- Overrides:
createCacheKey in class EhCacheImpl
saveGet
protected net.sf.ehcache.Element saveGet(Object key)
createSessionKey
public String createSessionKey(org.apache.jetspeed.request.RequestContext context)
- Specified by:
createSessionKey in interface org.apache.jetspeed.cache.JetspeedContentCache
invalidate
public void invalidate(org.apache.jetspeed.request.RequestContext context)
- Specified by:
invalidate in interface org.apache.jetspeed.cache.JetspeedContentCache
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.