Class AsyncStoreConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<AsyncStoreConfiguration>
org.infinispan.configuration.cache.AsyncStoreConfiguration
- All Implemented Interfaces:
Matchable<AsyncStoreConfiguration>, Updatable<AsyncStoreConfiguration>
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
FieldsModifier and TypeFieldDescriptionstatic final AttributeDefinition<Boolean> static final AttributeDefinition<Boolean> static final AttributeDefinition<Integer> static final AttributeDefinition<Integer> Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class ConfigurationElement
attributes, CHILDLESS, children, element, repeated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeSetbooleanenabled()If true, all modifications to this cache store happen asynchronously, on a separate thread.booleanintSets the size of the modification queue for the async store.intDeprecated, for removal: This API element is subject to removal in a future version.since 11.0 with no replacement as the thread pool is no longer usedMethods inherited from class ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write
-
Field Details
-
ENABLED
-
MODIFICATION_QUEUE_SIZE
-
THREAD_POOL_SIZE
@Deprecated(forRemoval=true, since="11.0") public static final AttributeDefinition<Integer> THREAD_POOL_SIZEDeprecated, for removal: This API element is subject to removal in a future version. -
FAIL_SILENTLY
-
-
Constructor Details
-
AsyncStoreConfiguration
-
-
Method Details
-
attributeDefinitionSet
-
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
Deprecated, for removal: This API element is subject to removal in a future version.since 11.0 with no replacement as the thread pool is no longer usedSize of the thread pool whose threads are responsible for applying the modifications. -
failSilently
public boolean failSilently()
-