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
Modifier and TypeFieldDescriptionstatic final AttributeDefinition<Long>
static final AttributeDefinition<XSiteEntryMergePolicy>
static final AttributeDefinition<Integer>
Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
Constructor Summary
ConstructorDescriptionSitesConfiguration
(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.boolean
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.Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0.getFailurePolicy
(String siteName) boolean
boolean
boolean
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.boolean
hasInUseBackup
(String siteName) Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.boolean
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.long
int
Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, 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 ofBackupConfiguration
that 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
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.
-