org.jboss.ejb3.cache.tree
Class AbortableLRUAlgorithm

java.lang.Object
  extended by org.jboss.cache.eviction.BaseEvictionAlgorithm
      extended by org.jboss.cache.eviction.LRUAlgorithm
          extended by org.jboss.ejb3.cache.tree.AbortableLRUAlgorithm
All Implemented Interfaces:
org.jboss.cache.eviction.EvictionAlgorithm

public class AbortableLRUAlgorithm
extends org.jboss.cache.eviction.LRUAlgorithm

LRUAlgorithm subclass that doesn't log an error if it catches ContextInUseException.

Version:
$Revision: 1.1 $
Author:
Brian Stansberry

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm
allowTombstones, cache, configuration, evictionActionPolicy, evictionAlgorithmConfig, evictionQueue, recycleQueue, regionFqn
 
Constructor Summary
AbortableLRUAlgorithm()
           
 
Method Summary
protected  boolean evictCacheNode(org.jboss.cache.Fqn fqn)
          Evict a node from cache.
 
Methods inherited from class org.jboss.cache.eviction.LRUAlgorithm
evict, getConfigurationClass, prune, setupEvictionQueue, shouldEvictNode
 
Methods inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm
assignToRegion, canIgnoreEvent, emptyRecycleQueue, getEvictionActionPolicy, getEvictionAlgorithmConfig, getEvictionQueue, getNextInQueue, initialize, isNodeInUseAndNotTimedOut, isYoungerThanMinimumTimeToLive, process, processAddedElement, processAddedNodes, processAddedNodes, processMarkInUseNodes, processQueues, processRemovedElement, processRemovedNodes, processUnmarkInUseNodes, processVisitedNodes, resetEvictionQueue, setEvictionActionPolicy, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbortableLRUAlgorithm

public AbortableLRUAlgorithm()
Method Detail

evictCacheNode

protected boolean evictCacheNode(org.jboss.cache.Fqn fqn)
Evict a node from cache.

Overrides:
evictCacheNode in class org.jboss.cache.eviction.BaseEvictionAlgorithm
Parameters:
fqn - node corresponds to this fqn
Returns:
True if successful


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