Class AsyncStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AsyncStoreConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo,ConfigurationInfo
public class AsyncStoreConfiguration extends Object implements ConfigurationInfo
Configuration for the async cache store. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.- Author:
- pmuir
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>ENABLEDstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>FAIL_SILENTLYstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>MODIFICATION_QUEUE_SIZEstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>THREAD_POOL_SIZE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSetattributes()booleanenabled()If true, all modifications to this cache store happen asynchronously, on a separate thread.booleanequals(Object obj)booleanfailSilently()org.infinispan.commons.configuration.elements.ElementDefinitiongetElementDefinition()inthashCode()intmodificationQueueSize()Sets the size of the modification queue for the async store.intthreadPoolSize()Size of the thread pool whose threads are responsible for applying the modifications.StringtoString()-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
ENABLED
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED
-
MODIFICATION_QUEUE_SIZE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> MODIFICATION_QUEUE_SIZE
-
THREAD_POOL_SIZE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> THREAD_POOL_SIZE
-
FAIL_SILENTLY
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> FAIL_SILENTLY
-
-
Method Detail
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
enabled
public boolean enabled()
If true, all modifications to this cache store happen asynchronously, on a separate thread.
-
modificationQueueSize
public int modificationQueueSize()
Sets the size of the modification queue for the async store. If updates are made at a rate that is faster than the underlying cache store can process this queue, then the async store behaves like a synchronous store for that period, blocking until the queue can accept more elements.
-
threadPoolSize
public int threadPoolSize()
Size of the thread pool whose threads are responsible for applying the modifications.
-
failSilently
public boolean failSilently()
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributesin interfaceBaseConfigurationInfo- Returns:
- the
AttributeSetdeclared by the configuration.
-
toString
public String toString()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-