Class SitesConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<SitesConfiguration>
org.infinispan.configuration.cache.SitesConfiguration
- All Implemented Interfaces:
Matchable<SitesConfiguration>, Updatable<SitesConfiguration>
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeDefinition<TimeQuantity> static final AttributeDefinition<XSiteEntryMergePolicy> static final AttributeDefinition<Integer> Fields inherited from class ConfigurationElement
attributes, CHILDLESS, children, element, repeated, sinceMajor, sinceMinor -
Constructor Summary
ConstructorsConstructorDescriptionSitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor) -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of all sites where this cache might back up its data.booleanDeprecated, for removal: This API element is subject to removal in a future version.since 14.0.Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.getFailurePolicy(String siteName) booleanbooleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.since 14.0.booleanhasInUseBackup(String siteName) Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.booleanDeprecated, for removal: This API element is subject to removal in a future version.since 14.0.longintMethods inherited from class ConfigurationElement
attributes, child, children, children, collectMutableAttributes, elementName, equals, extractAttributes, findAttribute, hashCode, isModified, isSince, list, matches, matches, matches, toString, update, update, update, validateUpdate, validateUpdate, validateUpdate, write
-
Field Details
-
MERGE_POLICY
-
MAX_CLEANUP_DELAY
-
TOMBSTONE_MAP_SIZE
-
-
Constructor Details
-
SitesConfiguration
public SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
-
-
Method Details
-
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
Returns the list of all sites where this cache might back up its data. The list of actual sites is defined byinUseBackupSites(). -
allBackupsStream
-
enabledBackups
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0. To be removed without replacement. UseallBackups()orallBackupsStream().Returns the list ofBackupConfigurationthat haveBackupConfiguration.enabled()== true. -
enabledBackupStream
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0. To be removed without replacement. UseallBackups()orallBackupsStream(). -
backupFor
- Returns:
- information about caches that backup data into this cache.
-
getFailurePolicy
-
hasInUseBackup
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0. To be removed without replacement -
hasEnabledBackups
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0. To be removed without replacement. UsehasBackups()instead. -
hasBackups
public boolean hasBackups() -
hasSyncEnabledBackups
public boolean hasSyncEnabledBackups() -
syncBackupsStream
-
hasAsyncEnabledBackups
public boolean hasAsyncEnabledBackups() -
asyncBackupsStream
-
inUseBackupSites
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0. To be removed without replacement. -
mergePolicy
- Returns:
- The
XSiteEntryMergePolicyto 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.
-