|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.loaders.decorators.AsyncStoreConfig
public class AsyncStoreConfig
Configuration for the async cache loader. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.
Field Summary | |
---|---|
protected Boolean |
enabled
|
protected Long |
flushLockTimeout
|
protected Long |
shutdownTimeout
|
protected Integer |
threadPoolSize
|
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
cr |
Fields inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
EMPTY_PROPERTIES, log, overriddenConfigurationElements |
Constructor Summary | |
---|---|
AsyncStoreConfig()
|
Method Summary | |
---|---|
void |
accept(ConfigurationBeanVisitor v)
|
AsyncStoreConfig |
clone()
|
AsyncStoreConfig |
enabled(Boolean enabled)
If true, all modifications to this cache store happen asynchronously, on a separate thread. |
AsyncStoreConfig |
flushLockTimeout(Long stateLockTimeout)
Timeout to acquire the lock which guards the state to be flushed to the cache store periodically. |
Long |
getFlushLockTimeout()
|
Long |
getShutdownTimeout()
|
Integer |
getThreadPoolSize()
|
Boolean |
isEnabled()
|
void |
setEnabled(Boolean enabled)
If true, all modifications to this cache store happen asynchronously, on a separate thread. |
AsyncStoreConfig |
setFlushLockTimeout(Long stateLockTimeout)
Timeout to acquire the lock which guards the state to be flushed to the cache store periodically. |
void |
setShutdownTimeout(Long shutdownTimeout)
Timeout to stop the cache store. |
void |
setThreadPoolSize(Integer threadPoolSize)
Size of the thread pool whose threads are responsible for applying the modifications. |
AsyncStoreConfig |
shutdownTimeout(Long shutdownTimeout)
Timeout to stop the cache store. |
AsyncStoreConfig |
threadPoolSize(Integer threadPoolSize)
Size of the thread pool whose threads are responsible for applying the modifications. |
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
hasComponentStarted, inject |
Methods inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Boolean enabled
protected Integer threadPoolSize
@Dynamic protected Long flushLockTimeout
@Dynamic protected Long shutdownTimeout
Constructor Detail |
---|
public AsyncStoreConfig()
Method Detail |
---|
public Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- public AsyncStoreConfig enabled(Boolean enabled)
enabled
- public Integer getThreadPoolSize()
public void setThreadPoolSize(Integer threadPoolSize)
threadPoolSize
- public AsyncStoreConfig threadPoolSize(Integer threadPoolSize)
threadPoolSize
- public Long getFlushLockTimeout()
public AsyncStoreConfig setFlushLockTimeout(Long stateLockTimeout)
stateLockTimeout
- public AsyncStoreConfig flushLockTimeout(Long stateLockTimeout)
stateLockTimeout
- public Long getShutdownTimeout()
public void setShutdownTimeout(Long shutdownTimeout)
shutdownTimeout
- public AsyncStoreConfig shutdownTimeout(Long shutdownTimeout)
shutdownTimeout
- public AsyncStoreConfig clone()
clone
in interface CloneableConfigurationComponent
clone
in class AbstractNamedCacheConfigurationBean
public void accept(ConfigurationBeanVisitor v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |