public class FIFOAlgorithmConfig extends EvictionAlgorithmConfigBase
FIFOAlgorithm
.
Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLive
log
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, setMinTimeToLiveSeconds
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
public FIFOAlgorithmConfig()
public FIFOAlgorithmConfig(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 FIFOAlgorithmConfig 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.