org.jboss.cache.eviction
Class DefaultEvictionActionPolicy

java.lang.Object
  extended by org.jboss.cache.eviction.DefaultEvictionActionPolicy
All Implemented Interfaces:
EvictionActionPolicy

public class DefaultEvictionActionPolicy
extends Object
implements EvictionActionPolicy

Default eviction action policy that calls Cache.evict(org.jboss.cache.Fqn) to evict a node.

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Constructor Summary
DefaultEvictionActionPolicy()
           
 
Method Summary
 boolean evict(Fqn fqn)
          Performs an eviction on a given node.
 void setCache(Cache<?,?> cache)
          Sets a reference to the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEvictionActionPolicy

public DefaultEvictionActionPolicy()
Method Detail

setCache

public void setCache(Cache<?,?> cache)
Description copied from interface: EvictionActionPolicy
Sets a reference to the cache.

Specified by:
setCache in interface EvictionActionPolicy
Parameters:
cache - cache

evict

public boolean evict(Fqn fqn)
Description copied from interface: EvictionActionPolicy
Performs an eviction on a given node.

Specified by:
evict in interface EvictionActionPolicy
Parameters:
fqn - fqn to evict
Returns:
true if the eviction was successful, false if not.


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.