public class ElementSizeAlgorithmConfig extends EvictionAlgorithmConfigBase
ElementSizeAlgorithm
.
Requires a positive "maxElementsPerNode" value otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLive
log
Constructor and Description |
---|
ElementSizeAlgorithmConfig() |
ElementSizeAlgorithmConfig(int maxNodes,
int maxElementsPerNode) |
Modifier and Type | Method and Description |
---|---|
ElementSizeAlgorithmConfig |
clone() |
boolean |
equals(Object obj) |
int |
getMaxElementsPerNode() |
int |
hashCode() |
void |
reset()
Resets the values to their defaults.
|
void |
setMaxElementsPerNode(int maxElementsPerNode) |
String |
toString() |
void |
validate()
Requires a positive maxElementsPerNode value or ConfigurationException
is thrown.
|
getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSeconds
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
public ElementSizeAlgorithmConfig()
public ElementSizeAlgorithmConfig(int maxNodes, int maxElementsPerNode)
public int getMaxElementsPerNode()
public void setMaxElementsPerNode(int maxElementsPerNode)
public void validate() throws ConfigurationException
validate
in interface EvictionAlgorithmConfig
validate
in class EvictionAlgorithmConfigBase
ConfigurationException
- if any values for the configuration
properties are invalidpublic boolean equals(Object obj)
equals
in class EvictionAlgorithmConfigBase
public int hashCode()
hashCode
in class EvictionAlgorithmConfigBase
public void reset()
EvictionAlgorithmConfig
reset
in interface EvictionAlgorithmConfig
reset
in class EvictionAlgorithmConfigBase
public ElementSizeAlgorithmConfig 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.