org.jboss.cache.loader
Class SingletonStoreDefaultConfig
java.lang.Object
org.jboss.cache.config.ConfigurationComponent
org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
org.jboss.cache.loader.SingletonStoreDefaultConfig
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class SingletonStoreDefaultConfig
- extends CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
Default singleton store cache loader configuration implementation, which is provided with the default singleton store
cache loader implementation. It provides with the capability of defining whether to push the in memory state to cache
loader when becoming the coordinator within a time constraint.
- Author:
- Galder Zamarreno
- See Also:
- Serialized Form
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
addChildConfig, addChildConfigs, clone, getTreeCache, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, safeEquals, setCacheImpl, testImmutability |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SingletonStoreDefaultConfig
public SingletonStoreDefaultConfig()
- Default constructor that sets default values for singleton store cache loader configuration taking in account
that this configuration belongs to the default singleton store cache loader implementation.
SingletonStoreDefaultConfig
public SingletonStoreDefaultConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig base)
- Constructor that sets the assumed values for the default singleton store cache loader implementation and also
the properties, as per the properties section defined in the XML configuration.
- Parameters:
base
- contains properties set in XML configuration
isSingletonStoreEnabled
public boolean isSingletonStoreEnabled()
- Overrides:
isSingletonStoreEnabled
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
setSingletonStoreEnabled
public void setSingletonStoreEnabled(boolean singletonStoreEnabled)
- Overrides:
setSingletonStoreEnabled
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
getSingletonStoreClass
public java.lang.String getSingletonStoreClass()
- Overrides:
getSingletonStoreClass
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
setSingletonStoreClass
public void setSingletonStoreClass(java.lang.String singletonStoreClass)
- Overrides:
setSingletonStoreClass
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
setSingletonStoreproperties
public void setSingletonStoreproperties(java.util.Properties props)
- Takes the properties defined and populates the individual instance fields of the default singleton store cache
loader configuration.
- Overrides:
setSingletonStoreproperties
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
- Parameters:
props
- is an instance of Properties containing these values.
isPushStateWhenCoordinator
public boolean isPushStateWhenCoordinator()
setPushStateWhenCoordinator
public void setPushStateWhenCoordinator(boolean pushStateWhenCoordinator)
getPushStateWhenCoordinatorTimeout
public int getPushStateWhenCoordinatorTimeout()
setPushStateWhenCoordinatorTimeout
public void setPushStateWhenCoordinatorTimeout(int pushStateWhenCoordinatorTimeout)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
hashCode
public int hashCode()
- Overrides:
hashCode
in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig