public class MRUAlgorithmConfig extends EvictionAlgorithmConfigBase
MRUAlgorithm
.
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLive
log
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, setMinTimeToLiveSeconds
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
public MRUAlgorithmConfig()
public MRUAlgorithmConfig(int maxNodes)
public void validate() throws ConfigurationException
validate
in interface EvictionAlgorithmConfig
validate
in class EvictionAlgorithmConfigBase
ConfigurationException
- if any values for the configuration
properties are invalidpublic void reset()
EvictionAlgorithmConfig
reset
in interface EvictionAlgorithmConfig
reset
in class EvictionAlgorithmConfigBase
public MRUAlgorithmConfig clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in interface EvictionAlgorithmConfig
clone
in class EvictionAlgorithmConfigBase
CloneNotSupportedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.