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, properties
cr
overriddenConfigurationElements
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, setProperties
hasComponentStarted, inject
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
finalize, getClass, notify, notifyAll, wait, wait, wait
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
protected 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 CacheStoreConfig
public SingletonStoreConfig singletonStore()
singletonStore
in interface CacheStoreConfig
public Boolean isPurgeSynchronously()
isPurgeSynchronously
in interface CacheStoreConfig
public Integer getPurgerThreads()
getPurgerThreads
in interface CacheStoreConfig
public TypedProperties getTypedProperties()
public void setTypedProperties(TypedProperties tp)
public void setPurgeSynchronously(Boolean purgeSynchronously)
setPurgeSynchronously
in interface CacheStoreConfig
purgeSynchronously
- public CacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
purgeSynchronously
in interface CacheStoreConfig
purgeSynchronously
- @Deprecated public void setPurgerThreads(Integer purgerThreads)
purgerThreads(Integer)
insteadpurgerThreads
- public CacheStoreConfig purgerThreads(Integer purgerThreads)
purgerThreads
in interface CacheStoreConfig
public Boolean isFetchPersistentState()
isFetchPersistentState
in interface CacheStoreConfig
public void setFetchPersistentState(Boolean fetchPersistentState)
setFetchPersistentState
in interface CacheStoreConfig
fetchPersistentState
- public CacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
fetchPersistentState
in interface CacheStoreConfig
fetchPersistentState
- public void setIgnoreModifications(Boolean ignoreModifications)
setIgnoreModifications
in interface CacheStoreConfig
ignoreModifications
- public CacheStoreConfig ignoreModifications(Boolean ignoreModifications)
ignoreModifications
in interface CacheStoreConfig
ignoreModifications
- public Boolean isIgnoreModifications()
isIgnoreModifications
in interface CacheStoreConfig
public Boolean isPurgeOnStartup()
isPurgeOnStartup
in interface CacheStoreConfig
public CacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
purgeOnStartup
in interface CacheStoreConfig
purgeOnStartup
- public void setPurgeOnStartup(Boolean purgeOnStartup)
setPurgeOnStartup
in interface CacheStoreConfig
purgeOnStartup
- public SingletonStoreConfig getSingletonStoreConfig()
getSingletonStoreConfig
in interface CacheStoreConfig
public void setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig)
setSingletonStoreConfig
in interface CacheStoreConfig
public AsyncStoreConfig getAsyncStoreConfig()
getAsyncStoreConfig
in interface CacheStoreConfig
public void setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig)
setAsyncStoreConfig
in interface CacheStoreConfig
public void accept(ConfigurationBeanVisitor v)
accept
in interface CacheLoaderConfig
accept
in class AbstractCacheLoaderConfig
protected boolean equalsExcludingProperties(Object obj)
protected int hashCodeExcludingProperties()
public AbstractCacheStoreConfig clone()
clone
in interface CloneableConfigurationComponent
clone
in interface CacheLoaderConfig
clone
in class AbstractCacheLoaderConfig
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.