org.jboss.cache.eviction
Class MRUConfiguration
java.lang.Object
org.jboss.cache.config.ConfigurationComponent
org.jboss.cache.eviction.EvictionPolicyConfigBase
org.jboss.cache.eviction.MRUConfiguration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, EvictionPolicyConfig
public class MRUConfiguration
- extends EvictionPolicyConfigBase
Configuration for MRUPolicy
.
If configured via XML, expects the following:
1000
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.
- Version:
- $Revision: 1.8 $
- Author:
- Daniel Huang (dhuang@jboss.org)
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
void |
reset()
Resets the values to their defaults. |
protected void |
setEvictionPolicyClassName()
This method should be overridden by subclass implementers to set the default
policy class name for the subclass. |
java.lang.String |
toString()
|
void |
validate()
Requires a positive maxNodes value or ConfigurationException
is thrown. |
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
addChildConfig, addChildConfigs, clone, getTreeCache, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, safeEquals, setCacheImpl, testImmutability |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MRUConfiguration
public MRUConfiguration()
setEvictionPolicyClassName
protected void setEvictionPolicyClassName()
- Description copied from class:
EvictionPolicyConfigBase
- This method should be overridden by subclass implementers to set the default
policy class name
for the subclass.
This will be called when the implementation is constructed, but is also
called in EvictionPolicyConfigBase.reset()
.
- Specified by:
setEvictionPolicyClassName
in class EvictionPolicyConfigBase
validate
public void validate()
throws ConfigurationException
- Requires a positive maxNodes value or ConfigurationException
is thrown.
- Specified by:
validate
in interface EvictionPolicyConfig
- Overrides:
validate
in class EvictionPolicyConfigBase
- Throws:
ConfigurationException
- if any values for the configuration
properties are invalid
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class EvictionPolicyConfigBase
reset
public void reset()
- Description copied from interface:
EvictionPolicyConfig
- Resets the values to their defaults.
- Specified by:
reset
in interface EvictionPolicyConfig
- Overrides:
reset
in class EvictionPolicyConfigBase