public class FileCacheStoreConfig extends LockSupportCacheStoreConfig
FileCacheStore
. This allows you to tune a number of characteristics
of the FileCacheStore
.
CacheStore.purgeExpired()
calls happen
synchronously or not. By default, this is set to false.Modifier and Type | Class and Description |
---|---|
static class |
FileCacheStoreConfig.FsyncMode |
static class |
FileCacheStoreConfig.FsyncModeEditor
Property editor for fsync mode configuration.
|
DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOCK_ACQUISITION_TIMEOUT
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
cacheLoaderClassName, properties
cr
overriddenConfigurationElements
Constructor and Description |
---|
FileCacheStoreConfig() |
Modifier and Type | Method and Description |
---|---|
FileCacheStoreConfig |
fetchPersistentState(Boolean fetchPersistentState)
If true, fetch persistent state when joining a cluster.
|
FileCacheStoreConfig |
fsyncInterval(long fsyncInterval) |
FileCacheStoreConfig |
fsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode) |
long |
getFsyncInterval() |
FileCacheStoreConfig.FsyncMode |
getFsyncMode() |
String |
getLocation() |
int |
getStreamBufferSize() |
FileCacheStoreConfig |
ignoreModifications(Boolean ignoreModifications)
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be
applied to the cache store.
|
FileCacheStoreConfig |
location(String location) |
FileCacheStoreConfig |
purgeOnStartup(Boolean purgeOnStartup)
If true, purges this cache store when it starts up.
|
FileCacheStoreConfig |
purgeSynchronously(Boolean purgeSynchronously)
If true, CacheStore#purgeExpired() call will be done synchronously
|
void |
setFsyncInterval(long fsyncInterval) |
void |
setFsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode) |
void |
setLocation(String location)
Deprecated.
The visibility of this will be reduced, use
location(String) |
void |
setStreamBufferSize(int streamBufferSize)
Deprecated.
The visibility of this will be reduced, use
streamBufferSize(int) instead |
FileCacheStoreConfig |
streamBufferSize(int streamBufferSize) |
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel, toString
accept, asyncStore, clone, equals, equalsExcludingProperties, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgerThreads, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setProperties
hasComponentStarted, inject
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
finalize, getClass, notify, notifyAll, wait, wait, wait
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
public String getLocation()
@Deprecated public void setLocation(String location)
location(String)
public FileCacheStoreConfig location(String location)
public int getStreamBufferSize()
@Deprecated public void setStreamBufferSize(int streamBufferSize)
streamBufferSize(int)
insteadpublic FileCacheStoreConfig streamBufferSize(int streamBufferSize)
public FileCacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
AbstractCacheStoreConfig
purgeOnStartup
in interface CacheStoreConfig
purgeOnStartup
in class AbstractCacheStoreConfig
public FileCacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
AbstractCacheStoreConfig
purgeSynchronously
in interface CacheStoreConfig
purgeSynchronously
in class AbstractCacheStoreConfig
public FileCacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
AbstractCacheStoreConfig
fetchPersistentState
in interface CacheStoreConfig
fetchPersistentState
in class AbstractCacheStoreConfig
public FileCacheStoreConfig ignoreModifications(Boolean ignoreModifications)
AbstractCacheStoreConfig
ignoreModifications
in interface CacheStoreConfig
ignoreModifications
in class AbstractCacheStoreConfig
public long getFsyncInterval()
public void setFsyncInterval(long fsyncInterval)
public FileCacheStoreConfig fsyncInterval(long fsyncInterval)
public FileCacheStoreConfig.FsyncMode getFsyncMode()
public void setFsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
public FileCacheStoreConfig fsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.