public class ElementSizeAlgorithmConfig extends EvictionAlgorithmConfigBase
ElementSizeAlgorithm.
Requires a positive "maxElementsPerNode" value otherwise a ConfigurationException is thrown.evictionAlgorithmClassName, maxNodes, minTimeToLivelog| 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, setMinTimeToLiveSecondsaddChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutabilitypublic ElementSizeAlgorithmConfig()
public ElementSizeAlgorithmConfig(int maxNodes,
int maxElementsPerNode)
public int getMaxElementsPerNode()
public void setMaxElementsPerNode(int maxElementsPerNode)
public void validate()
throws ConfigurationException
validate in interface EvictionAlgorithmConfigvalidate in class EvictionAlgorithmConfigBaseConfigurationException - if any values for the configuration
properties are invalidpublic boolean equals(Object obj)
equals in class EvictionAlgorithmConfigBasepublic int hashCode()
hashCode in class EvictionAlgorithmConfigBasepublic void reset()
EvictionAlgorithmConfigreset in interface EvictionAlgorithmConfigreset in class EvictionAlgorithmConfigBasepublic ElementSizeAlgorithmConfig clone() throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class EvictionAlgorithmConfigBaseCloneNotSupportedExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.