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_TIMEOUTasync, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStorecacheLoaderClassName, propertiescroverriddenConfigurationElements| 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, toStringaccept, asyncStore, clone, equals, equalsExcludingProperties, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgerThreads, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStoregetCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setPropertieshasComponentStarted, injecttestImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshallfinalize, getClass, notify, notifyAll, wait, wait, waitgetCacheLoaderClassName, getClassLoader, setCacheLoaderClassNamepublic 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)
AbstractCacheStoreConfigpurgeOnStartup in interface CacheStoreConfigpurgeOnStartup in class AbstractCacheStoreConfigpublic FileCacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
AbstractCacheStoreConfigpurgeSynchronously in interface CacheStoreConfigpurgeSynchronously in class AbstractCacheStoreConfigpublic FileCacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
AbstractCacheStoreConfigfetchPersistentState in interface CacheStoreConfigfetchPersistentState in class AbstractCacheStoreConfigpublic FileCacheStoreConfig ignoreModifications(Boolean ignoreModifications)
AbstractCacheStoreConfigignoreModifications in interface CacheStoreConfigignoreModifications in class AbstractCacheStoreConfigpublic 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 © 2012 JBoss by Red Hat. All Rights Reserved.