Class BackupConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.BackupConfigurationBuilder
- All Implemented Interfaces:
Builder<BackupConfiguration>,ConfigurationChildBuilder
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackupFailurePolicy(BackupFailurePolicy backupFailurePolicy) Configures the policy for handling failed requests.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 interceptorsenabled(boolean isEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.encoding()If the failure policy is set toBackupFailurePolicy.CUSTOMthen the failurePolicyClass is required and should return the fully qualified name of a class implementingCustomFailurePolicyfailurePolicyClass(String failurePolicy) protected ConfigurationBuilderindexing()locking()memory()query()read(BackupConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.replicationTimeout(long replicationTimeout) Timeout(millis) used for replicating calls to other sites.security()booleansimpleCache(boolean simpleCache) site()sites()strategy()strategy(BackupConfiguration.BackupStrategy strategy) Sets the strategy used for backing up data: sync or async.template(boolean template) toString()unsafe()useTwoPhaseCommit(boolean useTwoPhaseCommit) Controls if replication happens in a two phase commit (2PC) for synchronous backups.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, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
Field Details
-
builder
-
-
Constructor Details
-
BackupConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<BackupConfiguration>
-
site
- Parameters:
site- Specifies the name of the backup location for this cache. The name must match a site defined in the global configuration.
-
site
- See Also:
-
failurePolicyClass
If the failure policy is set toBackupFailurePolicy.CUSTOMthen the failurePolicyClass is required and should return the fully qualified name of a class implementingCustomFailurePolicy -
failurePolicyClass
- See Also:
-
replicationTimeout
Timeout(millis) used for replicating calls to other sites. -
strategy
Sets the strategy used for backing up data: sync or async. Defaults toBackupConfiguration.BackupStrategy.ASYNC. -
strategy
- See Also:
-
takeOffline
-
backupFailurePolicy
Configures the policy for handling failed requests. Defaults toBackupFailurePolicy.WARN -
useTwoPhaseCommit
Controls if replication happens in a two phase commit (2PC) for synchronous backups. The default value isfalse, which means replication happens in a one phase commit (1PC). -
enabled
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0. To be removed without replacement.Configures whether this site is used for backing up data or not (defaults to true). -
stateTransfer
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<BackupConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<BackupConfiguration>- 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<BackupConfiguration>- 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.
-
toString
-
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
-