org.infinispan.loaders
Class AbstractCacheStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.PluggableConfigurationComponent
org.infinispan.loaders.AbstractCacheLoaderConfig
org.infinispan.loaders.AbstractCacheStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, CacheLoaderConfig, CacheStoreConfig
- Direct Known Subclasses:
- BdbjeCacheStoreConfig, JdbcMixedCacheStoreConfig, LockSupportCacheStoreConfig
public class AbstractCacheStoreConfig
- extends AbstractCacheLoaderConfig
- implements CacheStoreConfig
Configures AbstractCacheStore
. This allows you to tune a number of characteristics of the AbstractCacheStore
.
- purgeSynchronously - whether
CacheStore.purgeExpired()
calls happen
synchronously or not. By default, this is set to false.
- purgerThreads - number of threads to use when purging. Defaults to 1 if purgeSynchronously
is true, ignored if false.
Note that class AbstractCacheStoreConfig contains JAXB annotations. These annotations determine how XML
configuration files are read into instances of configuration class hierarchy as well as they
provide meta data for configuration file XML schema generation. Please modify these annotations
and Java element types they annotate with utmost understanding and care.
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com, Vladimir Blagojevic
- See Also:
- Configuration reference,
Serialized Form
ignoreModifications
protected Boolean ignoreModifications
fetchPersistentState
protected Boolean fetchPersistentState
purgeOnStartup
protected Boolean purgeOnStartup
purgeSynchronously
protected Boolean purgeSynchronously
purgerThreads
protected Integer purgerThreads
singletonStore
protected SingletonStoreConfig singletonStore
async
protected AsyncStoreConfig async
AbstractCacheStoreConfig
public AbstractCacheStoreConfig()
isPurgeSynchronously
public Boolean isPurgeSynchronously()
- Specified by:
isPurgeSynchronously
in interface CacheStoreConfig
getPurgerThreads
public Integer getPurgerThreads()
setPurgeSynchronously
public void setPurgeSynchronously(Boolean purgeSynchronously)
- Specified by:
setPurgeSynchronously
in interface CacheStoreConfig
setPurgerThreads
public void setPurgerThreads(Integer purgerThreads)
isFetchPersistentState
public Boolean isFetchPersistentState()
- Specified by:
isFetchPersistentState
in interface CacheStoreConfig
setFetchPersistentState
public void setFetchPersistentState(Boolean fetchPersistentState)
- Specified by:
setFetchPersistentState
in interface CacheStoreConfig
setIgnoreModifications
public void setIgnoreModifications(Boolean ignoreModifications)
- Specified by:
setIgnoreModifications
in interface CacheStoreConfig
isIgnoreModifications
public Boolean isIgnoreModifications()
- Specified by:
isIgnoreModifications
in interface CacheStoreConfig
isPurgeOnStartup
public Boolean isPurgeOnStartup()
- Specified by:
isPurgeOnStartup
in interface CacheStoreConfig
setPurgeOnStartup
public void setPurgeOnStartup(Boolean purgeOnStartup)
- Specified by:
setPurgeOnStartup
in interface CacheStoreConfig
getSingletonStoreConfig
public SingletonStoreConfig getSingletonStoreConfig()
- Specified by:
getSingletonStoreConfig
in interface CacheStoreConfig
setSingletonStoreConfig
public void setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig)
- Specified by:
setSingletonStoreConfig
in interface CacheStoreConfig
getAsyncStoreConfig
public AsyncStoreConfig getAsyncStoreConfig()
- Specified by:
getAsyncStoreConfig
in interface CacheStoreConfig
setAsyncStoreConfig
public void setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig)
- Specified by:
setAsyncStoreConfig
in interface CacheStoreConfig
accept
public void accept(ConfigurationBeanVisitor v)
- Specified by:
accept
in interface CacheLoaderConfig
- Overrides:
accept
in class AbstractCacheLoaderConfig
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 AbstractCacheStoreConfig clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Specified by:
clone
in interface CacheLoaderConfig
- Overrides:
clone
in class AbstractCacheLoaderConfig
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.