Class BackupConfiguration

java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<BackupConfiguration>
org.infinispan.configuration.cache.BackupConfiguration
All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<BackupConfiguration>, org.infinispan.commons.configuration.attributes.Updatable<BackupConfiguration>

public class BackupConfiguration extends org.infinispan.commons.configuration.attributes.ConfigurationElement<BackupConfiguration>
Since:
5.2
Author:
Mircea.Markus@jboss.com
  • Field Details

    • SITE

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> SITE
    • STRATEGY

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupConfiguration.BackupStrategy> STRATEGY
    • REPLICATION_TIMEOUT

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> REPLICATION_TIMEOUT
    • FAILURE_POLICY

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupFailurePolicy> FAILURE_POLICY
    • FAILURE_POLICY_CLASS

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> FAILURE_POLICY_CLASS
    • USE_TWO_PHASE_COMMIT

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> USE_TWO_PHASE_COMMIT
    • ENABLED

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED
  • Constructor Details

  • Method Details

    • site

      public String site()
      Returns the name of the site where this cache backups its data.
    • strategy

      How does the backup happen: sync or async.
    • takeOffline

      public TakeOfflineConfiguration takeOffline()
    • failurePolicyClass

      public String failurePolicyClass()
      If the failure policy is set to BackupFailurePolicy.CUSTOM then the failurePolicyClass is required and should return the fully qualified name of a class implementing CustomFailurePolicy
    • isAsyncBackup

      public boolean isAsyncBackup()
    • isSyncBackup

      public boolean isSyncBackup()
    • replicationTimeout

      public long replicationTimeout()
    • replicationTimeout

      public BackupConfiguration replicationTimeout(long timeout)
    • backupFailurePolicy

      public BackupFailurePolicy backupFailurePolicy()
    • isTwoPhaseCommit

      public boolean isTwoPhaseCommit()
    • enabled

      public boolean enabled()
    • stateTransfer

      public XSiteStateTransferConfiguration stateTransfer()