public class MRUAlgorithmConfig extends EvictionAlgorithmConfigBase
MRUAlgorithm.
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLivelog| Constructor and Description |
|---|
MRUAlgorithmConfig() |
MRUAlgorithmConfig(int maxNodes) |
| Modifier and Type | Method and Description |
|---|---|
MRUAlgorithmConfig |
clone() |
void |
reset()
Resets the values to their defaults.
|
String |
toString() |
void |
validate()
Requires a positive maxNodes value or ConfigurationException
is thrown.
|
equals, getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, hashCode, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSecondsaddChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutabilitypublic MRUAlgorithmConfig()
public MRUAlgorithmConfig(int maxNodes)
public void validate()
throws ConfigurationException
validate in interface EvictionAlgorithmConfigvalidate in class EvictionAlgorithmConfigBaseConfigurationException - if any values for the configuration
properties are invalidpublic void reset()
EvictionAlgorithmConfigreset in interface EvictionAlgorithmConfigreset in class EvictionAlgorithmConfigBasepublic MRUAlgorithmConfig clone() throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class EvictionAlgorithmConfigBaseCloneNotSupportedExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.