| 
 | ||||||||||
| 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
org.jboss.cache.eviction.ExpirationAlgorithmConfig
public class ExpirationAlgorithmConfig
Configuration for indicating the Node key for setting a specific eviction time.
| Field Summary | |
|---|---|
| static String | EXPIRATION_KEYDefault key name for indicating expiration time. | 
| Fields inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase | 
|---|
| evictionAlgorithmClassName, maxNodes, minTimeToLive | 
| Fields inherited from class org.jboss.cache.config.ConfigurationComponent | 
|---|
| log | 
| Constructor Summary | |
|---|---|
| ExpirationAlgorithmConfig() | |
| Method Summary | |
|---|---|
|  ExpirationAlgorithmConfig | clone() | 
|  boolean | equals(Object o) | 
|  String | getExpirationKeyName()Returns the expirationKeyName. | 
|  long | getTimeToLive() | 
|  int | hashCode() | 
|  boolean | isWarnNoExpirationKey()Returns true if the algorithm should warn if a expiration key is missing for a node. | 
|  void | reset()Resets the values to their defaults. | 
|  void | setExpirationKeyName(String expirationKeyName)Sets the expirationKeyName. | 
|  void | setTimeToLive(long timeToLive)Sets the time to live | 
|  void | setTimeToLive(long timeToLive,
              TimeUnit timeUnit) | 
|  void | setTimeToLiveSeconds(long time)Deprecated. | 
|  void | setWarnNoExpirationKey(boolean warnNoExpirationKey)Sets if the algorithm should warn if a expiration key is missing for a node. | 
|  String | toString() | 
| Methods inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase | 
|---|
| getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSeconds, validate | 
| 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, wait, wait, wait | 
| Field Detail | 
|---|
public static final String EXPIRATION_KEY
| Constructor Detail | 
|---|
public ExpirationAlgorithmConfig()
| Method Detail | 
|---|
public String getExpirationKeyName()
public void setExpirationKeyName(String expirationKeyName)
public boolean isWarnNoExpirationKey()
public void setWarnNoExpirationKey(boolean warnNoExpirationKey)
public long getTimeToLive()
public void setTimeToLive(long timeToLive)
timeToLive - value in milliseconds
public void setTimeToLive(long timeToLive,
                          TimeUnit timeUnit)
@Deprecated public void setTimeToLiveSeconds(long time)
public ExpirationAlgorithmConfig clone()
                                throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class EvictionAlgorithmConfigBaseCloneNotSupportedExceptionpublic boolean equals(Object o)
equals in class EvictionAlgorithmConfigBasepublic int hashCode()
hashCode in class EvictionAlgorithmConfigBasepublic void reset()
EvictionAlgorithmConfig
reset in interface EvictionAlgorithmConfigreset in class EvictionAlgorithmConfigBasepublic String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||