public class AsyncStoreConfigurationBuilder<S> extends AbstractStoreConfigurationChildBuilder<S> implements Builder<AsyncStoreConfiguration>, ConfigurationBuilderInfo
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuilderInfo, getChildrenInfo, getNewBuilderInfo
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
persistence
public AsyncStoreConfigurationBuilder<S> enable()
public AsyncStoreConfigurationBuilder<S> disable()
public AsyncStoreConfigurationBuilder<S> enabled(boolean enabled)
public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public AsyncStoreConfigurationBuilder<S> modificationQueueSize(int i)
@Deprecated public AsyncStoreConfigurationBuilder<S> threadPoolSize(int i)
public AsyncStoreConfigurationBuilder<S> failSilently(boolean failSilently)
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.public void validate()
Builder
validate
in interface Builder<AsyncStoreConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public AsyncStoreConfiguration create()
Builder
create
in interface Builder<AsyncStoreConfiguration>
public AsyncStoreConfigurationBuilder<S> read(AsyncStoreConfiguration template)
Builder
read
in interface Builder<AsyncStoreConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationChildBuilder template(boolean template)
template
in interface ConfigurationChildBuilder
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
simpleCache
in interface ConfigurationChildBuilder
public boolean simpleCache()
simpleCache
in interface ConfigurationChildBuilder
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public StatisticsConfigurationBuilder statistics()
statistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.