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
-
Constructor Summary
-
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 ConfigurationBuilder
indexing()
locking()
maxTombstoneCleanupDelay
(long value) Sets the maximum delay, in milliseconds, between which the tombstone cleanup task runs.memory()
mergePolicy
(XSiteEntryMergePolicy<?, ?> mergePolicy) Configures theXSiteEntryMergePolicy
to be used.query()
read
(SitesConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()
boolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) tombstoneMapSize
(int value) Sets the target tombstone map size.unsafe()
void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 theXSiteEntryMergePolicy
to be used.XSiteEntryMergePolicy
is invoked when a conflicts is detected between 2 sites. A conflict happens when a key is updated concurrently in 2 sites.XSiteMergePolicy
enum contains implementation available to be used.- Parameters:
mergePolicy
- TheXSiteEntryMergePolicy
implementation 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<SitesConfiguration>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<SitesConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in 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:
attributes
in interfaceBuilder<SitesConfiguration>
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in 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:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-