fsyncMode - configures how the file changes will be
synchronized with the underlying file system. This property has three
possible values:
- default means that the file system will be
synchronized when the OS buffer is full or when the bucket is read.
- perWrite configures the file cache store to sync up
changes after each write request
- periodic enables sync operations to happen as per a
defined interval, or when the bucket is about to be read.
The default mode configured is default
- fsyncInterval - specifies the time after which the file
changes in the cache need to be flushed. This option has only effect when
periodic fsync mode is in use. The default fsync interval is 1
second.
- Since:
- 4.0
- Author:
- Manik Surtani, Vladimir Blagojevic, Galder ZamarreƱo
- See Also:
- Serialized Form
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig |
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 |
FileCacheStoreConfig
public FileCacheStoreConfig()
getLocation
public String getLocation()
setLocation
@Deprecated
public void setLocation(String location)
- Deprecated. The visibility of this will be reduced, use
location(String)
location
public FileCacheStoreConfig location(String location)
getStreamBufferSize
public int getStreamBufferSize()
setStreamBufferSize
@Deprecated
public void setStreamBufferSize(int streamBufferSize)
- Deprecated. The visibility of this will be reduced, use
streamBufferSize(int)
instead
streamBufferSize
public FileCacheStoreConfig streamBufferSize(int streamBufferSize)
purgeOnStartup
public FileCacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
- Description copied from class:
AbstractCacheStoreConfig
- If true, purges this cache store when it starts up.
- Specified by:
purgeOnStartup
in interface CacheStoreConfig
- Overrides:
purgeOnStartup
in class AbstractCacheStoreConfig
purgeSynchronously
public FileCacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
- Description copied from class:
AbstractCacheStoreConfig
- If true, CacheStore#purgeExpired() call will be done synchronously
- Specified by:
purgeSynchronously
in interface CacheStoreConfig
- Overrides:
purgeSynchronously
in class AbstractCacheStoreConfig
fetchPersistentState
public FileCacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
- Description copied from class:
AbstractCacheStoreConfig
- If true, fetch persistent state when joining a cluster. If multiple cache stores are chained,
only one of them can have this property enabled. Persistent state transfer with a shared cache
store does not make sense, as the same persistent store that provides the data will just end
up receiving it. Therefore, if a shared cache store is used, the cache will not allow a
persistent state transfer even if a cache store has this property set to true. Finally,
setting it to true only makes sense if in a clustered environment, and only 'replication' and
'invalidation' cluster modes are supported.
- Specified by:
fetchPersistentState
in interface CacheStoreConfig
- Overrides:
fetchPersistentState
in class AbstractCacheStoreConfig
ignoreModifications
public FileCacheStoreConfig ignoreModifications(Boolean ignoreModifications)
- Description copied from class:
AbstractCacheStoreConfig
- If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be
applied to the cache store. This means that the cache store could become out of sync with the
cache.
- Specified by:
ignoreModifications
in interface CacheStoreConfig
- Overrides:
ignoreModifications
in class AbstractCacheStoreConfig
getFsyncInterval
public long getFsyncInterval()
setFsyncInterval
public void setFsyncInterval(long fsyncInterval)
fsyncInterval
public FileCacheStoreConfig fsyncInterval(long fsyncInterval)
getFsyncMode
public FileCacheStoreConfig.FsyncMode getFsyncMode()
setFsyncMode
public void setFsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
fsyncMode
public FileCacheStoreConfig fsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.