|
||||||||||
| 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 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()
EvictionAlgorithmConfigEvictionAlgorithm implementation
this object will configure.
getEvictionAlgorithmClassName in interface EvictionAlgorithmConfigpublic int getMaxNodes()
public void setMaxNodes(int maxNodes)
public long getMinTimeToLive()
public void setMinTimeToLive(long minTimeToLive)
minTimeToLive - time to live, in milliseconds
public void setMinTimeToLive(long time,
TimeUnit timeUnit)
@Deprecated public void setMinTimeToLiveSeconds(long time)
public void validate()
throws ConfigurationException
EvictionAlgorithmConfig
validate in interface EvictionAlgorithmConfigConfigurationException - if any values for the configuration
properties are invalidpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void reset()
EvictionAlgorithmConfig
reset in interface EvictionAlgorithmConfig
public EvictionAlgorithmConfig clone()
throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class ConfigurationComponentCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||