public class AbstractCacheStoreConfig extends AbstractCacheLoaderConfig implements CacheStoreConfig
AbstractCacheStore. This allows you to tune a number of characteristics of the
AbstractCacheStore.
CacheStore.purgeExpired() calls happen synchronously or not. By
default, this is set to false.| Modifier and Type | Field and Description |
|---|---|
protected AsyncStoreConfig |
async |
protected Boolean |
fetchPersistentState |
protected Boolean |
ignoreModifications |
protected Boolean |
purgeOnStartup |
protected Integer |
purgerThreads |
protected Boolean |
purgeSynchronously |
protected SingletonStoreConfig |
singletonStore |
cacheLoaderClassName, propertiescroverriddenConfigurationElements| Constructor and Description |
|---|
AbstractCacheStoreConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ConfigurationBeanVisitor v) |
AsyncStoreConfig |
asyncStore() |
AbstractCacheStoreConfig |
clone() |
boolean |
equals(Object obj) |
protected boolean |
equalsExcludingProperties(Object obj) |
CacheStoreConfig |
fetchPersistentState(Boolean fetchPersistentState)
If true, fetch persistent state when joining a cluster.
|
AsyncStoreConfig |
getAsyncStoreConfig() |
Integer |
getPurgerThreads() |
SingletonStoreConfig |
getSingletonStoreConfig() |
TypedProperties |
getTypedProperties() |
int |
hashCode() |
protected int |
hashCodeExcludingProperties() |
CacheStoreConfig |
ignoreModifications(Boolean ignoreModifications)
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be
applied to the cache store.
|
Boolean |
isFetchPersistentState() |
Boolean |
isIgnoreModifications() |
Boolean |
isPurgeOnStartup() |
Boolean |
isPurgeSynchronously() |
CacheStoreConfig |
purgeOnStartup(Boolean purgeOnStartup)
If true, purges this cache store when it starts up.
|
CacheStoreConfig |
purgerThreads(Integer purgerThreads) |
CacheStoreConfig |
purgeSynchronously(Boolean purgeSynchronously)
If true, CacheStore#purgeExpired() call will be done synchronously
|
void |
setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig) |
void |
setFetchPersistentState(Boolean fetchPersistentState)
If true, fetch persistent state when joining a cluster.
|
void |
setIgnoreModifications(Boolean ignoreModifications)
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be
applied to the cache store.
|
void |
setPurgeOnStartup(Boolean purgeOnStartup)
If true, purges this cache store when it starts up.
|
void |
setPurgerThreads(Integer purgerThreads)
Deprecated.
use
purgerThreads(Integer) instead |
void |
setPurgeSynchronously(Boolean purgeSynchronously)
If true, CacheStore#purgeExpired() call will be done synchronously
|
void |
setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig) |
void |
setTypedProperties(TypedProperties tp) |
SingletonStoreConfig |
singletonStore() |
String |
toString() |
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setPropertieshasComponentStarted, injecttestImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshallfinalize, getClass, notify, notifyAll, wait, wait, waitgetCacheLoaderClassName, getClassLoader, setCacheLoaderClassNameprotected Boolean ignoreModifications
protected Boolean fetchPersistentState
protected Boolean purgeOnStartup
protected Boolean purgeSynchronously
protected Integer purgerThreads
protected SingletonStoreConfig singletonStore
protected AsyncStoreConfig async
public AsyncStoreConfig asyncStore()
asyncStore in interface CacheStoreConfigpublic SingletonStoreConfig singletonStore()
singletonStore in interface CacheStoreConfigpublic Boolean isPurgeSynchronously()
isPurgeSynchronously in interface CacheStoreConfigpublic Integer getPurgerThreads()
getPurgerThreads in interface CacheStoreConfigpublic TypedProperties getTypedProperties()
public void setTypedProperties(TypedProperties tp)
public void setPurgeSynchronously(Boolean purgeSynchronously)
setPurgeSynchronously in interface CacheStoreConfigpurgeSynchronously - public CacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
purgeSynchronously in interface CacheStoreConfigpurgeSynchronously - @Deprecated public void setPurgerThreads(Integer purgerThreads)
purgerThreads(Integer) insteadpurgerThreads - public CacheStoreConfig purgerThreads(Integer purgerThreads)
purgerThreads in interface CacheStoreConfigpublic Boolean isFetchPersistentState()
isFetchPersistentState in interface CacheStoreConfigpublic void setFetchPersistentState(Boolean fetchPersistentState)
setFetchPersistentState in interface CacheStoreConfigfetchPersistentState - public CacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
fetchPersistentState in interface CacheStoreConfigfetchPersistentState - public void setIgnoreModifications(Boolean ignoreModifications)
setIgnoreModifications in interface CacheStoreConfigignoreModifications - public CacheStoreConfig ignoreModifications(Boolean ignoreModifications)
ignoreModifications in interface CacheStoreConfigignoreModifications - public Boolean isIgnoreModifications()
isIgnoreModifications in interface CacheStoreConfigpublic Boolean isPurgeOnStartup()
isPurgeOnStartup in interface CacheStoreConfigpublic CacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
purgeOnStartup in interface CacheStoreConfigpurgeOnStartup - public void setPurgeOnStartup(Boolean purgeOnStartup)
setPurgeOnStartup in interface CacheStoreConfigpurgeOnStartup - public SingletonStoreConfig getSingletonStoreConfig()
getSingletonStoreConfig in interface CacheStoreConfigpublic void setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig)
setSingletonStoreConfig in interface CacheStoreConfigpublic AsyncStoreConfig getAsyncStoreConfig()
getAsyncStoreConfig in interface CacheStoreConfigpublic void setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig)
setAsyncStoreConfig in interface CacheStoreConfigpublic void accept(ConfigurationBeanVisitor v)
accept in interface CacheLoaderConfigaccept in class AbstractCacheLoaderConfigprotected boolean equalsExcludingProperties(Object obj)
protected int hashCodeExcludingProperties()
public AbstractCacheStoreConfig clone()
clone in interface CloneableConfigurationComponentclone in interface CacheLoaderConfigclone in class AbstractCacheLoaderConfigCopyright © 2012 JBoss by Red Hat. All Rights Reserved.