public abstract class EvictionAlgorithmConfigBase extends ConfigurationComponent implements EvictionAlgorithmConfig
Modifier and Type | Field and Description |
---|---|
protected String |
evictionAlgorithmClassName |
protected int |
maxNodes |
protected long |
minTimeToLive |
log
Modifier | Constructor and Description |
---|---|
protected |
EvictionAlgorithmConfigBase()
Can only be instantiated by a subclass.
|
Modifier and Type | Method and Description |
---|---|
EvictionAlgorithmConfig |
clone() |
boolean |
equals(Object o) |
String |
getEvictionAlgorithmClassName()
Gets the class name of the
EvictionAlgorithm implementation
this object will configure. |
int |
getMaxNodes() |
long |
getMinTimeToLive() |
int |
hashCode() |
void |
reset()
Resets the values to their defaults.
|
void |
setMaxNodes(int maxNodes) |
void |
setMinTimeToLive(long minTimeToLive) |
void |
setMinTimeToLive(long time,
TimeUnit timeUnit) |
void |
setMinTimeToLiveSeconds(long time)
Deprecated.
|
void |
validate()
Validate the configuration.
|
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
protected String evictionAlgorithmClassName
@Dynamic protected int maxNodes
@Dynamic protected long minTimeToLive
protected EvictionAlgorithmConfigBase()
public String getEvictionAlgorithmClassName()
EvictionAlgorithmConfig
EvictionAlgorithm
implementation
this object will configure.getEvictionAlgorithmClassName
in interface EvictionAlgorithmConfig
public int getMaxNodes()
public void setMaxNodes(int maxNodes)
public long getMinTimeToLive()
public void setMinTimeToLive(long minTimeToLive)
minTimeToLive
- time to live, in millisecondspublic void setMinTimeToLive(long time, TimeUnit timeUnit)
@Deprecated public void setMinTimeToLiveSeconds(long time)
public void validate() throws ConfigurationException
EvictionAlgorithmConfig
validate
in interface EvictionAlgorithmConfig
ConfigurationException
- if any values for the configuration
properties are invalidpublic void reset()
EvictionAlgorithmConfig
reset
in interface EvictionAlgorithmConfig
public EvictionAlgorithmConfig clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in interface EvictionAlgorithmConfig
clone
in class ConfigurationComponent
CloneNotSupportedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.