|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.config.ConfigurationComponent
org.jboss.cache.eviction.EvictionAlgorithmConfigBase
public abstract class EvictionAlgorithmConfigBase
A base class used for configuring eviction algorithms.
Field Summary | |
---|---|
protected java.lang.String |
evictionAlgorithmClassName
|
protected int |
maxNodes
|
protected long |
minTimeToLive
|
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
protected |
EvictionAlgorithmConfigBase()
Can only be instantiated by a subclass. |
Method Summary | |
---|---|
EvictionAlgorithmConfig |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.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,
java.util.concurrent.TimeUnit timeUnit)
|
void |
setMinTimeToLiveSeconds(long time)
Deprecated. |
void |
validate()
Validate the configuration. |
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String evictionAlgorithmClassName
@Dynamic protected int maxNodes
@Dynamic protected long minTimeToLive
Constructor Detail |
---|
protected EvictionAlgorithmConfigBase()
Method Detail |
---|
public java.lang.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, java.util.concurrent.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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void reset()
EvictionAlgorithmConfig
reset
in interface EvictionAlgorithmConfig
public EvictionAlgorithmConfig clone() throws java.lang.CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in interface EvictionAlgorithmConfig
clone
in class ConfigurationComponent
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |