@Deprecated public class ElementSizeConfiguration extends EvictionPolicyConfigBase implements ModernizableConfig
ElementSizePolicy
.
If configured via XML, expects the following:
Requires a positive "maxElementsPerNode" value otherwise a ConfigurationException is thrown.100 10000
log
Constructor and Description |
---|
ElementSizeConfiguration()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ElementSizeConfiguration |
clone()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
getMaxElementsPerNode()
Deprecated.
|
int |
hashCode()
Deprecated.
|
EvictionAlgorithmConfig |
modernizeConfig()
Deprecated.
|
void |
reset()
Deprecated.
Resets the values to their defaults.
|
protected void |
setEvictionPolicyClassName()
Deprecated.
This method should be overridden by subclass implementers to set the default
policy class name for the subclass. |
void |
setMaxElementsPerNode(int maxElementsPerNode)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
validate()
Deprecated.
Requires a positive maxElementsPerNode value or ConfigurationException
is thrown.
|
getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSeconds
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
protected void setEvictionPolicyClassName()
EvictionPolicyConfigBase
policy class name
for the subclass.
This will be called when the implementation is constructed, but is also
called in EvictionPolicyConfigBase.reset()
.setEvictionPolicyClassName
in class EvictionPolicyConfigBase
public EvictionAlgorithmConfig modernizeConfig()
modernizeConfig
in interface ModernizableConfig
public int getMaxElementsPerNode()
public void setMaxElementsPerNode(int maxElementsPerNode)
public void validate() throws ConfigurationException
validate
in interface EvictionPolicyConfig
validate
in class EvictionPolicyConfigBase
ConfigurationException
- if any values for the configuration
properties are invalidpublic boolean equals(Object obj)
equals
in class EvictionPolicyConfigBase
public int hashCode()
hashCode
in class EvictionPolicyConfigBase
public void reset()
EvictionPolicyConfig
reset
in interface EvictionPolicyConfig
reset
in class EvictionPolicyConfigBase
public ElementSizeConfiguration clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class ConfigurationComponent
CloneNotSupportedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.