Class AsyncStoreConfigurationBuilder<S>
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
org.infinispan.configuration.cache.AsyncStoreConfigurationBuilder<S>
- All Implemented Interfaces:
Builder<AsyncStoreConfiguration>,ConfigurationChildBuilder,PersistenceConfigurationChildBuilder,StoreConfigurationChildBuilder<S>
public class AsyncStoreConfigurationBuilder<S>
extends AbstractStoreConfigurationChildBuilder<S>
implements Builder<AsyncStoreConfiguration>
Configuration for the async cache store. If enabled, this configuration provides
asynchronous writes to the cache store or 'write-behind' caching.
- Author:
- pmuir
-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Create the configuration beandisable()enable()If true, all modifications to this cache store happen asynchronously on a separate thread.enabled(boolean enabled) encoding()failSilently(boolean failSilently) protected ConfigurationBuilderindexing()locking()memory()modificationQueueSize(int i) Sets the size of the modification queue for the async store.query()read(AsyncStoreConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) threadPoolSize(int i) 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 usedtoString()tracing()unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
aliases, build, clustering, encoding, expiration, indexing, invocationBatching, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, tracing, transaction, unsafeMethods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<S>
-
enable
If true, all modifications to this cache store happen asynchronously on a separate thread. -
disable
-
enabled
-
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(forRemoval=true, since="11.0") public AsyncStoreConfigurationBuilder<S> threadPoolSize(int i) 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 usedConfigures the number of threads in the thread pool that is responsible for applying modifications. -
failSilently
- Parameters:
failSilently- If true, the async store attempts to perform write operations only as many times as configured with `connection-attempts` in the PersistenceConfiguration. If all attempts fail, the errors are ignored and the write operations are not executed on the store. If false, write operations that fail are attempted again when the underlying store becomes available. If the modification queue becomes full before the underlying store becomes available, an error is thrown on all future write operations to the store until the modification queue is flushed. The modification queue is not persisted. If the underlying store does not become available before the Async store is stopped, queued modifications are lost.
-
validate
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean -
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration -
toString
-
aliases
- Specified by:
aliasesin interfaceConfigurationChildBuilder
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-