Class AsyncStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AsyncStoreConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class AsyncStoreConfiguration extends java.lang.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 AttributeDefinition<java.lang.Boolean>
ENABLED
static AttributeDefinition<java.lang.Boolean>
FAIL_SILENTLY
static AttributeDefinition<java.lang.Integer>
MODIFICATION_QUEUE_SIZE
static AttributeDefinition<java.lang.Integer>
THREAD_POOL_SIZE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSet
attributes()
boolean
enabled()
If true, all modifications to this cache store happen asynchronously, on a separate thread.boolean
equals(java.lang.Object obj)
boolean
failSilently()
ElementDefinition
getElementDefinition()
int
hashCode()
int
modificationQueueSize()
Sets the size of the modification queue for the async store.int
threadPoolSize()
Size of the thread pool whose threads are responsible for applying the modifications.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<java.lang.Boolean> ENABLED
-
MODIFICATION_QUEUE_SIZE
public static final AttributeDefinition<java.lang.Integer> MODIFICATION_QUEUE_SIZE
-
THREAD_POOL_SIZE
public static final AttributeDefinition<java.lang.Integer> THREAD_POOL_SIZE
-
FAIL_SILENTLY
public static final AttributeDefinition<java.lang.Boolean> FAIL_SILENTLY
-
-
Method Detail
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of 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 AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-