org.jboss.cache.eviction
Class MRUAlgorithmConfig
java.lang.Object
org.jboss.cache.config.ConfigurationComponent
org.jboss.cache.eviction.EvictionAlgorithmConfigBase
org.jboss.cache.eviction.MRUAlgorithmConfig
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, CloneableConfigurationComponent, EvictionAlgorithmConfig
public class MRUAlgorithmConfig
- extends EvictionAlgorithmConfigBase
Configuration for MRUAlgorithm
.
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.
- Since:
- 3.0
- Author:
- Manik Surtani
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MRUAlgorithmConfig
public MRUAlgorithmConfig()
MRUAlgorithmConfig
public MRUAlgorithmConfig(int maxNodes)
validate
public void validate()
throws ConfigurationException
- Requires a positive maxNodes value or ConfigurationException
is thrown.
- Specified by:
validate
in interface EvictionAlgorithmConfig
- Overrides:
validate
in class EvictionAlgorithmConfigBase
- Throws:
ConfigurationException
- if any values for the configuration
properties are invalid
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
reset
public void reset()
- Description copied from interface:
EvictionAlgorithmConfig
- Resets the values to their defaults.
- Specified by:
reset
in interface EvictionAlgorithmConfig
- Overrides:
reset
in class EvictionAlgorithmConfigBase
clone
public MRUAlgorithmConfig clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface CloneableConfigurationComponent
- Specified by:
clone
in interface EvictionAlgorithmConfig
- Overrides:
clone
in class EvictionAlgorithmConfigBase
- Returns:
- a clone of the EvictionAlgorithmConfig.
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.