public class BackupConfigurationBuilder extends Object implements Builder<BackupConfiguration>, ConfigurationBuilderInfo
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
Constructor and Description |
---|
BackupConfigurationBuilder(ConfigurationBuilder builder) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuilderInfo, getNewBuilderInfo
jmxStatistics
protected final ConfigurationBuilder builder
public BackupConfigurationBuilder(ConfigurationBuilder builder)
public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public Collection<ConfigurationBuilderInfo> getChildrenInfo()
getChildrenInfo
in interface ConfigurationBuilderInfo
ConfigurationBuilderInfo
for the sub-elements of the builder.public BackupConfigurationBuilder site(String site)
site
- The name of the site where this cache backups. Must be a valid name, i.e. a site defined in the
global config.public String site()
site(String)
public String failurePolicyClass()
BackupFailurePolicy.CUSTOM
then the failurePolicyClass is required and
should return the fully qualified name of a class implementing CustomFailurePolicy
public BackupConfigurationBuilder failurePolicyClass(String failurePolicy)
failurePolicyClass()
public BackupConfigurationBuilder replicationTimeout(long replicationTimeout)
public BackupConfigurationBuilder strategy(BackupConfiguration.BackupStrategy strategy)
BackupConfiguration.BackupStrategy.ASYNC
.public BackupConfiguration.BackupStrategy strategy()
strategy()
public TakeOfflineConfigurationBuilder takeOffline()
public BackupConfigurationBuilder backupFailurePolicy(BackupFailurePolicy backupFailurePolicy)
BackupFailurePolicy.WARN
public BackupConfigurationBuilder useTwoPhaseCommit(boolean useTwoPhaseCommit)
public BackupConfigurationBuilder enabled(boolean isEnabled)
public XSiteStateTransferConfigurationBuilder stateTransfer()
public void validate()
Builder
validate
in interface Builder<BackupConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public BackupConfiguration create()
Builder
create
in interface Builder<BackupConfiguration>
public BackupConfigurationBuilder read(BackupConfiguration template)
Builder
read
in interface Builder<BackupConfiguration>
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.