|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.ConfigurationComponent org.jboss.cache.eviction.EvictionAlgorithmConfigBase
public abstract class EvictionAlgorithmConfigBase
A base class used for configuring eviction algorithms.
Field Summary | |
---|---|
protected 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(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. |
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 String evictionAlgorithmClassName
@Dynamic protected int maxNodes
@Dynamic protected long minTimeToLive
Constructor Detail |
---|
protected EvictionAlgorithmConfigBase()
Method Detail |
---|
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 boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |