org.jboss.soa.esb.listeners.gateway.remotestrategies.cache
Class DeleteOnEvictTreeCacheListener

java.lang.Object
  extended by org.jboss.soa.esb.listeners.gateway.remotestrategies.cache.DeleteOnEvictTreeCacheListener

public class DeleteOnEvictTreeCacheListener
extends java.lang.Object

This listener will upon node eviction events delete the node from the cache.

This listener should be used in combination with a cache loader
so that it is possible to set an eviction policy and when nodes
are evicted they are also deleted from the cache loaders store

Author:
Daniel Bevenius

Constructor Summary
DeleteOnEvictTreeCacheListener(org.jboss.cache.Cache cache)
           
 
Method Summary
 void cacheStarted(org.jboss.cache.notifications.event.CacheStartedEvent arg0)
           
 void cacheStopped(org.jboss.cache.notifications.event.CacheStoppedEvent arg0)
           
 void nodeCreated(org.jboss.cache.Fqn arg0)
           
 void nodeEvicted(org.jboss.cache.notifications.event.NodeRemovedEvent nre)
          Will remove from the passed in fqn upon being evicted from the cache.
 void nodeLoaded(org.jboss.cache.Fqn arg0)
           
 void nodeModified(org.jboss.cache.Fqn arg0)
           
 void nodeRemoved(org.jboss.cache.Fqn arg0)
           
 void nodeVisited(org.jboss.cache.Fqn arg0)
           
 void viewChange(org.jgroups.View arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteOnEvictTreeCacheListener

public DeleteOnEvictTreeCacheListener(org.jboss.cache.Cache cache)
Method Detail

nodeEvicted

public void nodeEvicted(org.jboss.cache.notifications.event.NodeRemovedEvent nre)
Will remove from the passed in fqn upon being evicted from the cache.


cacheStarted

public void cacheStarted(org.jboss.cache.notifications.event.CacheStartedEvent arg0)

cacheStopped

public void cacheStopped(org.jboss.cache.notifications.event.CacheStoppedEvent arg0)

nodeCreated

public void nodeCreated(org.jboss.cache.Fqn arg0)

nodeLoaded

public void nodeLoaded(org.jboss.cache.Fqn arg0)

nodeModified

public void nodeModified(org.jboss.cache.Fqn arg0)

nodeRemoved

public void nodeRemoved(org.jboss.cache.Fqn arg0)

nodeVisited

public void nodeVisited(org.jboss.cache.Fqn arg0)

viewChange

public void viewChange(org.jgroups.View arg0)