org.apache.jetspeed.cache.impl
Class EhCacheDistributedImpl

java.lang.Object
  extended by org.apache.jetspeed.cache.impl.EhCacheImpl
      extended by org.apache.jetspeed.cache.impl.EhCacheDistributedImpl
All Implemented Interfaces:
Cloneable, net.sf.ehcache.event.CacheEventListener, org.apache.jetspeed.cache.JetspeedCache

public class EhCacheDistributedImpl
extends EhCacheImpl
implements org.apache.jetspeed.cache.JetspeedCache, net.sf.ehcache.event.CacheEventListener


Field Summary
private  Map refList
           
 
Fields inherited from class org.apache.jetspeed.cache.impl.EhCacheImpl
ehcache, localListeners, remoteListeners
 
Constructor Summary
EhCacheDistributedImpl(net.sf.ehcache.Ehcache ehcache)
           
 
Method Summary
 Object clone()
           
 String createCacheKey(String primary, String secondary)
           
 org.apache.jetspeed.cache.CacheElement createElement(Object key, Object content)
           
 org.apache.jetspeed.cache.CacheElement createElement(Serializable key, org.apache.jetspeed.cache.DistributedCacheObject content)
           
 void dispose()
           
 void evictContentForUser(org.apache.jetspeed.request.RequestContext context)
           
 org.apache.jetspeed.cache.CacheElement get(Object key)
           
 org.apache.jetspeed.cache.CacheElement get(Serializable key)
           
 boolean isKeyInCache(Object key)
           
 boolean isKeyInCache(Serializable key)
           
 void notifyElement(net.sf.ehcache.Ehcache cache, boolean local, net.sf.ehcache.Element arg1, int action)
           
 void notifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element arg1)
           
 void notifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element arg1)
           
 void notifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element arg1)
           
 void notifyElementRemoved(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element arg1)
           
 void notifyElementUpdated(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element arg1)
           
 void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
           
 void put(org.apache.jetspeed.cache.CacheElement element)
           
 boolean remove(Object key)
           
 boolean remove(Serializable key)
           
 boolean removeQuiet(Object key)
           
 
Methods inherited from class org.apache.jetspeed.cache.impl.EhCacheImpl
addEventListener, clear, createCacheKey, evictContentForSession, evictContentForUser, getTimeToIdleSeconds, getTimeToLiveSeconds, notifyListeners, removeEventListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.cache.JetspeedCache
addEventListener, clear, createCacheKey, evictContentForSession, evictContentForUser, getTimeToIdleSeconds, getTimeToLiveSeconds, removeEventListener
 

Field Detail

refList

private Map refList
Constructor Detail

EhCacheDistributedImpl

public EhCacheDistributedImpl(net.sf.ehcache.Ehcache ehcache)
Method Detail

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

get

public org.apache.jetspeed.cache.CacheElement get(Serializable key)

isKeyInCache

public boolean isKeyInCache(Object key)
Specified by:
isKeyInCache in interface org.apache.jetspeed.cache.JetspeedCache
Overrides:
isKeyInCache in class EhCacheImpl

isKeyInCache

public boolean isKeyInCache(Serializable key)

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

createElement

public org.apache.jetspeed.cache.CacheElement createElement(Serializable key,
                                                            org.apache.jetspeed.cache.DistributedCacheObject content)

remove

public boolean remove(Object key)
Specified by:
remove in interface org.apache.jetspeed.cache.JetspeedCache
Overrides:
remove in class EhCacheImpl

remove

public boolean remove(Serializable key)

removeQuiet

public boolean removeQuiet(Object key)
Specified by:
removeQuiet in interface org.apache.jetspeed.cache.JetspeedCache
Overrides:
removeQuiet in class EhCacheImpl

evictContentForUser

public void evictContentForUser(org.apache.jetspeed.request.RequestContext context)

createCacheKey

public String createCacheKey(String primary,
                             String secondary)

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface net.sf.ehcache.event.CacheEventListener
Overrides:
clone in class EhCacheImpl
Throws:
CloneNotSupportedException

dispose

public void dispose()
Specified by:
dispose in interface net.sf.ehcache.event.CacheEventListener
Overrides:
dispose in class EhCacheImpl

notifyElement

public void notifyElement(net.sf.ehcache.Ehcache cache,
                          boolean local,
                          net.sf.ehcache.Element arg1,
                          int action)

notifyElementEvicted

public void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element arg1)
Specified by:
notifyElementEvicted in interface net.sf.ehcache.event.CacheEventListener

notifyElementExpired

public void notifyElementExpired(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element arg1)
Specified by:
notifyElementExpired in interface net.sf.ehcache.event.CacheEventListener

notifyElementPut

public void notifyElementPut(net.sf.ehcache.Ehcache cache,
                             net.sf.ehcache.Element arg1)
                      throws net.sf.ehcache.CacheException
Specified by:
notifyElementPut in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyElementRemoved

public void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element arg1)
                          throws net.sf.ehcache.CacheException
Specified by:
notifyElementRemoved in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyElementUpdated

public void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element arg1)
                          throws net.sf.ehcache.CacheException
Specified by:
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyRemoveAll

public void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
Specified by:
notifyRemoveAll in interface net.sf.ehcache.event.CacheEventListener


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