org.jboss.cache.eviction
Class FIFOAlgorithmConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.eviction.EvictionAlgorithmConfigBase
          extended by org.jboss.cache.eviction.FIFOAlgorithmConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, EvictionAlgorithmConfig

public class FIFOAlgorithmConfig
extends EvictionAlgorithmConfigBase

Configuration for FIFOAlgorithm.

Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.

Since:
3.0
Author:
Manik Surtani
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase
evictionAlgorithmClassName, maxNodes, minTimeToLive
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
FIFOAlgorithmConfig()
           
FIFOAlgorithmConfig(int maxNodes)
           
 
Method Summary
 FIFOAlgorithmConfig clone()
           
 boolean equals(Object obj)
           
 void reset()
          Resets the values to their defaults.
 String toString()
           
 void validate()
          Requires a positive maxNodes value or ConfigurationException is thrown.
 
Methods inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase
getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, hashCode, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSeconds
 
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
 

Constructor Detail

FIFOAlgorithmConfig

public FIFOAlgorithmConfig()

FIFOAlgorithmConfig

public FIFOAlgorithmConfig(int maxNodes)
Method Detail

validate

public void validate()
              throws ConfigurationException
Requires a positive maxNodes value or ConfigurationException is thrown.

Specified by:
validate in interface EvictionAlgorithmConfig
Overrides:
validate in class EvictionAlgorithmConfigBase
Throws:
ConfigurationException - if any values for the configuration properties are invalid

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class EvictionAlgorithmConfigBase

reset

public void reset()
Description copied from interface: EvictionAlgorithmConfig
Resets the values to their defaults.

Specified by:
reset in interface EvictionAlgorithmConfig
Overrides:
reset in class EvictionAlgorithmConfigBase

clone

public FIFOAlgorithmConfig clone()
                          throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Specified by:
clone in interface EvictionAlgorithmConfig
Overrides:
clone in class EvictionAlgorithmConfigBase
Returns:
a clone of the EvictionAlgorithmConfig.
Throws:
CloneNotSupportedException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.