org.jboss.cache.eviction
Class LRUPolicy

java.lang.Object
  extended by org.jboss.cache.eviction.BaseEvictionPolicy
      extended by org.jboss.cache.eviction.LRUPolicy
All Implemented Interfaces:
EvictionPolicy, ModernizablePolicy

Deprecated. see LRUAlgorithm

@Deprecated
public class LRUPolicy
extends BaseEvictionPolicy
implements ModernizablePolicy

Provider to provide eviction policy. This one is based on LRU algorithm that a user can specify either maximum number of nodes or the idle time of a node to be evicted.

Version:
$Revision: 7168 $
Author:
Ben Wang 02-2004, Daniel Huang - dhuang@jboss.org

Field Summary
protected  EvictionAlgorithm algorithm
          Deprecated.  
protected  RegionManager regionManager_
          Deprecated.  
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
cache_
 
Constructor Summary
LRUPolicy()
          Deprecated.  
 
Method Summary
 EvictionAlgorithm getEvictionAlgorithm()
          Deprecated. Get the associated EvictionAlgorithm used by the EvictionPolicy.
 Class<LRUConfiguration> getEvictionConfigurationClass()
          Deprecated. The EvictionPolicyConfig implementation class used by this EvictionPolicy.
 Class<? extends EvictionAlgorithm> modernizePolicy()
          Deprecated.  
 void setCache(CacheSPI cache)
          Deprecated. Method called to set the cache in this implementation.
 
Methods inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
canIgnoreEvent, evict, getCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regionManager_

protected RegionManager regionManager_
Deprecated. 

algorithm

protected EvictionAlgorithm algorithm
Deprecated. 
Constructor Detail

LRUPolicy

public LRUPolicy()
Deprecated. 
Method Detail

getEvictionAlgorithm

public EvictionAlgorithm getEvictionAlgorithm()
Deprecated. 
Description copied from interface: EvictionPolicy
Get the associated EvictionAlgorithm used by the EvictionPolicy.

This relationship should be 1-1.

Specified by:
getEvictionAlgorithm in interface EvictionPolicy
Returns:
An EvictionAlgorithm implementation.

getEvictionConfigurationClass

public Class<LRUConfiguration> getEvictionConfigurationClass()
Deprecated. 
Description copied from interface: EvictionPolicy
The EvictionPolicyConfig implementation class used by this EvictionPolicy.

Specified by:
getEvictionConfigurationClass in interface EvictionPolicy
Returns:
EvictionPolicyConfig implementation class.

setCache

public void setCache(CacheSPI cache)
Deprecated. 
Description copied from interface: EvictionPolicy
Method called to set the cache in this implementation.

Specified by:
setCache in interface EvictionPolicy
Overrides:
setCache in class BaseEvictionPolicy
Parameters:
cache - the cache to set

modernizePolicy

public Class<? extends EvictionAlgorithm> modernizePolicy()
Deprecated. 
Specified by:
modernizePolicy in interface ModernizablePolicy


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