org.infinispan.loaders.file
Class FileCacheStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.PluggableConfigurationComponent
org.infinispan.loaders.AbstractCacheLoaderConfig
org.infinispan.loaders.AbstractCacheStoreConfig
org.infinispan.loaders.LockSupportCacheStoreConfig
org.infinispan.loaders.file.FileCacheStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, CacheLoaderConfig, CacheStoreConfig
public class FileCacheStoreConfig
- extends LockSupportCacheStoreConfig
Configures FileCacheStore
. This allows you to tune a number of characteristics
of the FileCacheStore
.
- location - a location on disk where the store can write internal files. This defaults to
Infinispan-FileCacheStore in the current working directory.
- purgeSynchronously - whether
CacheStore.purgeExpired()
calls happen
synchronously or not. By default, this is set to false.
- purgerThreads - number of threads to use when purging. Defaults to 1 if purgeSynchronously
is true, ignored if false.
- streamBufferSize - when writing state to disk, a buffered stream is used. This
parameter allows you to tune the buffer size. Larger buffers are usually faster but take up more (temporary) memory,
resulting in more gc. By default, this is set to 8192.
- lockConcurrencyLevel - locking granularity is per file bucket. This setting defines the number of
shared locks to use. The more locks you have, the better your concurrency will be, but more locks take up more
memory. By default, this is set to 2048.
- lockAcquistionTimeout - the length of time, in milliseconds, to wait for locks
before timing out and throwing an exception. By default, this is set to 60000.
- Since:
- 4.0
- Author:
- Manik Surtani
- See Also:
- Serialized Form
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig |
accept, clone, equals, equalsExcludingProperties, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, toString |
FileCacheStoreConfig
public FileCacheStoreConfig()
getLocation
public String getLocation()
setLocation
public void setLocation(String location)
getStreamBufferSize
public int getStreamBufferSize()
setStreamBufferSize
public void setStreamBufferSize(int streamBufferSize)
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.