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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackupFailurePolicy
(BackupFailurePolicy backupFailurePolicy) Configures the policy for handling failed requests.build()
create()
Create the configuration beanenabled
(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.CUSTOM
then the failurePolicyClass is required and should return the fully qualified name of a class implementingCustomFailurePolicy
failurePolicyClass
(String failurePolicy) protected ConfigurationBuilder
indexing()
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.replicationTimeout
(String replicationTimeout) Same asreplicationTimeout(long)
but supporting time units.security()
boolean
simpleCache
(boolean simpleCache) site()
sites()
strategy()
strategy
(BackupConfiguration.BackupStrategy strategy) Sets the strategy used for backing up data: sync or async.template
(boolean template) toString()
tracing()
unsafe()
useTwoPhaseCommit
(boolean useTwoPhaseCommit) Controls if replication happens in a two phase commit (2PC) for synchronous backups.void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig)
-
Field Details
-
builder
-
-
Constructor Details
-
BackupConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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.CUSTOM
then 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. -
replicationTimeout
Same asreplicationTimeout(long)
but supporting time units. -
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(forRemoval=true, since="14.0") public BackupConfigurationBuilder enabled(boolean isEnabled) 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<BackupConfiguration>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<BackupConfiguration>
- 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<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
-
aliases
- Specified by:
aliases
in interfaceConfigurationChildBuilder
-
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
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracing
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
-