public class FIFOAlgorithmConfig extends EvictionAlgorithmConfigBase
FIFOAlgorithm.
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLivelog| Constructor and Description |
|---|
FIFOAlgorithmConfig() |
FIFOAlgorithmConfig(int maxNodes) |
| Modifier and Type | Method and Description |
|---|---|
FIFOAlgorithmConfig |
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 FIFOAlgorithmConfig()
public FIFOAlgorithmConfig(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 FIFOAlgorithmConfig clone() throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class EvictionAlgorithmConfigBaseCloneNotSupportedExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.