Class SitesConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.SitesConfigurationBuilder
- All Implemented Interfaces:
Builder<SitesConfiguration>,ConfigurationChildBuilder
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInUseBackupSite(String site) Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.backups()build()create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdisableBackups(boolean disable) Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.encoding()protected ConfigurationBuilderindexing()locking()maxTombstoneCleanupDelay(long value) Sets the maximum delay, in milliseconds, between which the tombstone cleanup task runs.memory()mergePolicy(XSiteEntryMergePolicy<?, ?> mergePolicy) Configures theXSiteEntryMergePolicyto be used.query()read(SitesConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) tombstoneMapSize(int value) Sets the target tombstone map size.unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
Field Details
-
builder
-
-
Constructor Details
-
SitesConfigurationBuilder
-
-
Method Details
-
addBackup
-
backups
-
disableBackups
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0. To be removed without replacement.Returns true if this cache won't backup its data remotely. It would still accept other sites backing up data on this site. -
addInUseBackupSite
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0. To be removed without replacement.Defines the site names, from the list of sites names defined within 'backups' element, to which this cache backups its data. -
backupFor
-
mergePolicy
Configures theXSiteEntryMergePolicyto be used.XSiteEntryMergePolicyis invoked when a conflicts is detected between 2 sites. A conflict happens when a key is updated concurrently in 2 sites.XSiteMergePolicyenum contains implementation available to be used.- Parameters:
mergePolicy- TheXSiteEntryMergePolicyimplementation to use.- Returns:
this.- See Also:
-
maxTombstoneCleanupDelay
Sets the maximum delay, in milliseconds, between which the tombstone cleanup task runs.- Parameters:
value- The maximum delay in milliseconds.- Returns:
this.
-
tombstoneMapSize
Sets the target tombstone map size.The cleanup task checks the current size of the tombstone map before starting, and increases the delay of the next run if the size is less than the target size, or reduces the delay if the size is greater than the target size.
- Parameters:
value- The target tombstone map size.- Returns:
this.
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<SitesConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<SitesConfiguration>- Returns:
-
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- Specified by:
readin interfaceBuilder<SitesConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
attributes
- Specified by:
attributesin interfaceBuilder<SitesConfiguration>
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin 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
-