org.jboss.cache.config
Class CacheLoaderConfig.IndividualCacheLoaderConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.config.PluggableConfigurationComponent
          extended by org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent
Direct Known Subclasses:
AdjListJDBCCacheLoaderConfig, AsyncCacheLoaderConfig, BdbjeCacheLoaderConfig, ClusteredCacheLoaderConfig, FileCacheLoaderConfig, JdbmCacheLoaderConfig, LocalDelegatingCacheLoaderConfig, S3LoaderConfig, TcpDelegatingCacheLoaderConfig
Enclosing class:
CacheLoaderConfig

public static class CacheLoaderConfig.IndividualCacheLoaderConfig
extends PluggableConfigurationComponent

Configuration object that holds the confguration of an individual cache loader.

Author:
Manik Surtani (manik AT jboss DOT org), Galder Zamarreno
See Also:
Serialized Form

Nested Class Summary
static class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
          Configuration for a SingletonStoreCacheLoader
 
Field Summary
 
Fields inherited from class org.jboss.cache.config.PluggableConfigurationComponent
className, properties
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
CacheLoaderConfig.IndividualCacheLoaderConfig()
           
 
Method Summary
 CacheLoaderConfig.IndividualCacheLoaderConfig clone()
           
 boolean equals(Object obj)
           
protected  boolean equalsExcludingProperties(Object obj)
           
 CacheLoader getCacheLoader()
          Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one.
 CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig getSingletonStoreConfig()
           
 int hashCode()
           
protected  int hashCodeExcludingProperties()
           
 boolean isAsync()
           
 boolean isFetchPersistentState()
           
 boolean isIgnoreModifications()
           
 boolean isPurgeOnStartup()
           
protected  void populateFromBaseConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
           
 void setAsync(boolean async)
           
 void setCacheLoader(CacheLoader cacheLoader)
          Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one.
 void setFetchPersistentState(boolean fetchPersistentState)
           
 void setIgnoreModifications(boolean ignoreModifications)
           
 void setPurgeOnStartup(boolean purgeOnStartup)
           
 void setSingletonStoreConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig singletonStoreConfig)
           
 String toString()
           
 
Methods inherited from class org.jboss.cache.config.PluggableConfigurationComponent
getClassName, getProperties, setClassName, setProperties, setProperties
 
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

CacheLoaderConfig.IndividualCacheLoaderConfig

public CacheLoaderConfig.IndividualCacheLoaderConfig()
Method Detail

populateFromBaseConfig

protected void populateFromBaseConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)

isPurgeOnStartup

public boolean isPurgeOnStartup()

isFetchPersistentState

public boolean isFetchPersistentState()

setFetchPersistentState

public void setFetchPersistentState(boolean fetchPersistentState)

setAsync

public void setAsync(boolean async)

isAsync

public boolean isAsync()

setIgnoreModifications

public void setIgnoreModifications(boolean ignoreModifications)

isIgnoreModifications

public boolean isIgnoreModifications()

setPurgeOnStartup

public void setPurgeOnStartup(boolean purgeOnStartup)

getSingletonStoreConfig

public CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig getSingletonStoreConfig()

setSingletonStoreConfig

public void setSingletonStoreConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig singletonStoreConfig)

getCacheLoader

public CacheLoader getCacheLoader()
Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one. Primarily to facilitate testing with mock objects.

Returns:
cache loader, if one exists
Since:
2.1.0

setCacheLoader

public void setCacheLoader(CacheLoader cacheLoader)
Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one. Primarily to facilitate testing with mock objects.

Parameters:
cacheLoader - cacheLoader to set
Since:
2.1.0

equals

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

equalsExcludingProperties

protected boolean equalsExcludingProperties(Object obj)

hashCode

public int hashCode()
Overrides:
hashCode in class PluggableConfigurationComponent

hashCodeExcludingProperties

protected int hashCodeExcludingProperties()

toString

public String toString()
Overrides:
toString in class PluggableConfigurationComponent

clone

public CacheLoaderConfig.IndividualCacheLoaderConfig clone()
                                                    throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class PluggableConfigurationComponent
Throws:
CloneNotSupportedException


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