org.jboss.cache.eviction
Class RemoveOnEvictActionPolicy
java.lang.Object
org.jboss.cache.eviction.RemoveOnEvictActionPolicy
- All Implemented Interfaces:
- EvictionActionPolicy
public class RemoveOnEvictActionPolicy
- extends Object
- implements EvictionActionPolicy
An eviction action policy that calls Cache.removeNode(org.jboss.cache.Fqn)
to evict a node.
- Since:
- 3.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
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 |
RemoveOnEvictActionPolicy
public RemoveOnEvictActionPolicy()
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.