org.infinispan.loaders.decorators
Class AsyncStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.loaders.decorators.AsyncStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable
public class AsyncStoreConfig
- extends AbstractNamedCacheConfigurationBean
Configuration for the async cache loader. If enabled, this provides you with asynchronous writes
to the cache store, giving you 'write-behind' caching.
- Since:
- 4.0
- Author:
- Manik Surtani, Vladimir Blagojevic
- See Also:
- Configuration reference,
Serialized Form
enabled
protected Boolean enabled
threadPoolSize
protected Integer threadPoolSize
flushLockTimeout
@Dynamic
protected Long flushLockTimeout
shutdownTimeout
@Dynamic
protected Long shutdownTimeout
AsyncStoreConfig
public AsyncStoreConfig()
isEnabled
public Boolean isEnabled()
setEnabled
public void setEnabled(Boolean enabled)
- If true, all modifications to this cache store happen asynchronously, on a separate thread.
- Parameters:
enabled
-
getThreadPoolSize
public Integer getThreadPoolSize()
setThreadPoolSize
public void setThreadPoolSize(Integer threadPoolSize)
- Size of the thread pool whose threads are responsible for applying the modifications.
- Parameters:
threadPoolSize
-
getFlushLockTimeout
public Long getFlushLockTimeout()
setFlushLockTimeout
public void setFlushLockTimeout(Long stateLockTimeout)
- Timeout to acquire the lock which guards the state to be flushed to the cache store
periodically.
- Parameters:
stateLockTimeout
-
getShutdownTimeout
public Long getShutdownTimeout()
setShutdownTimeout
public void setShutdownTimeout(Long shutdownTimeout)
- Timeout to stop the cache store. When the store is stopped it's possible that some
modifications still need to be applied; you likely want to set a very large timeout to make
sure to not loose data
- Parameters:
shutdownTimeout
-
clone
public AsyncStoreConfig clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class AbstractNamedCacheConfigurationBean
accept
public void accept(ConfigurationBeanVisitor v)
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.