Class SitesConfiguration

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

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

    • MERGE_POLICY

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<XSiteEntryMergePolicy> MERGE_POLICY
    • MAX_CLEANUP_DELAY

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> MAX_CLEANUP_DELAY
    • TOMBSTONE_MAP_SIZE

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> TOMBSTONE_MAP_SIZE
  • Constructor Details

  • Method Details

    • disableBackups

      @Deprecated(forRemoval=true, since="14.0") public boolean 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.
    • allBackups

      public List<BackupConfiguration> allBackups()
      Returns the list of all sites where this cache might back up its data. The list of actual sites is defined by inUseBackupSites().
    • allBackupsStream

      public Stream<BackupConfiguration> allBackupsStream()
    • enabledBackups

      @Deprecated(forRemoval=true, since="14.0") public List<BackupConfiguration> enabledBackups()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 14.0. To be removed without replacement. Use allBackups() or allBackupsStream().
      Returns the list of BackupConfiguration that have BackupConfiguration.enabled() == true.
    • enabledBackupStream

      @Deprecated(forRemoval=true, since="14.0") public Stream<BackupConfiguration> enabledBackupStream()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 14.0. To be removed without replacement. Use allBackups() or allBackupsStream().
    • backupFor

      public BackupForConfiguration backupFor()
      Returns:
      information about caches that backup data into this cache.
    • getFailurePolicy

      public BackupFailurePolicy getFailurePolicy(String siteName)
    • hasInUseBackup

      @Deprecated(forRemoval=true, since="14.0") public boolean hasInUseBackup(String siteName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 14.0. To be removed without replacement
    • hasEnabledBackups

      @Deprecated(forRemoval=true, since="14.0") public boolean hasEnabledBackups()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 14.0. To be removed without replacement. Use hasBackups() instead.
    • hasBackups

      public boolean hasBackups()
    • hasSyncEnabledBackups

      public boolean hasSyncEnabledBackups()
    • syncBackupsStream

      public Stream<BackupConfiguration> syncBackupsStream()
    • hasAsyncEnabledBackups

      public boolean hasAsyncEnabledBackups()
    • asyncBackupsStream

      public Stream<BackupConfiguration> asyncBackupsStream()
    • inUseBackupSites

      @Deprecated(forRemoval=true) public Set<String> inUseBackupSites()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 14.0. To be removed without replacement.
    • mergePolicy

      public XSiteEntryMergePolicy<?,?> mergePolicy()
      Returns:
      The XSiteEntryMergePolicy to resolve conflicts when asynchronous cross-site replication is enabled.
      See Also:
    • maxTombstoneCleanupDelay

      public long maxTombstoneCleanupDelay()
      Returns:
      The maximum delay, in milliseconds, between which tombstone cleanup tasks run.
    • tombstoneMapSize

      public int tombstoneMapSize()
      Returns:
      The target tombstone map size.