Class SitesConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.attributes.ConfigurationElement<SitesConfiguration>
-
- org.infinispan.configuration.cache.SitesConfiguration
-
- All Implemented Interfaces:
Matchable<SitesConfiguration>
,Updatable<SitesConfiguration>
public class SitesConfiguration extends ConfigurationElement<SitesConfiguration>
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Long>
MAX_CLEANUP_DELAY
static AttributeDefinition<XSiteEntryMergePolicy>
MERGE_POLICY
static AttributeDefinition<Integer>
TOMBSTONE_MAP_SIZE
-
Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
-
Constructor Summary
Constructors Constructor Description SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<BackupConfiguration>
allBackups()
Returns the list of all sites where this cache might back up its data.Stream<BackupConfiguration>
allBackupsStream()
Stream<BackupConfiguration>
asyncBackupsStream()
BackupForConfiguration
backupFor()
boolean
disableBackups()
Deprecated.since 14.0.List<BackupConfiguration>
enabledBackups()
Deprecated.Since 14.0.Stream<BackupConfiguration>
enabledBackupStream()
Deprecated.Since 14.0.BackupFailurePolicy
getFailurePolicy(String siteName)
boolean
hasAsyncEnabledBackups()
boolean
hasBackups()
boolean
hasEnabledBackups()
Deprecated.since 14.0.boolean
hasInUseBackup(String siteName)
Deprecated.since 14.0.boolean
hasSyncEnabledBackups()
Set<String>
inUseBackupSites()
Deprecated.since 14.0.long
maxTombstoneCleanupDelay()
XSiteEntryMergePolicy<?,?>
mergePolicy()
Stream<BackupConfiguration>
syncBackupsStream()
int
tombstoneMapSize()
-
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 Detail
-
MERGE_POLICY
public static final AttributeDefinition<XSiteEntryMergePolicy> MERGE_POLICY
-
MAX_CLEANUP_DELAY
public static final AttributeDefinition<Long> MAX_CLEANUP_DELAY
-
TOMBSTONE_MAP_SIZE
public static final AttributeDefinition<Integer> TOMBSTONE_MAP_SIZE
-
-
Constructor Detail
-
SitesConfiguration
public SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
-
-
Method Detail
-
disableBackups
@Deprecated public boolean disableBackups()
Deprecated.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 byinUseBackupSites()
.
-
allBackupsStream
public Stream<BackupConfiguration> allBackupsStream()
-
enabledBackups
@Deprecated public List<BackupConfiguration> enabledBackups()
Deprecated.Since 14.0. To be removed without replacement. UseallBackups()
orallBackupsStream()
.Returns the list ofBackupConfiguration
that haveBackupConfiguration.enabled()
== true.
-
enabledBackupStream
@Deprecated public Stream<BackupConfiguration> enabledBackupStream()
Deprecated.Since 14.0. To be removed without replacement. UseallBackups()
orallBackupsStream()
.
-
backupFor
public BackupForConfiguration backupFor()
- Returns:
- information about caches that backup data into this cache.
-
getFailurePolicy
public BackupFailurePolicy getFailurePolicy(String siteName)
-
hasInUseBackup
@Deprecated public boolean hasInUseBackup(String siteName)
Deprecated.since 14.0. To be removed without replacement
-
hasEnabledBackups
@Deprecated public boolean hasEnabledBackups()
Deprecated.since 14.0. To be removed without replacement. UsehasBackups()
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 public Set<String> inUseBackupSites()
Deprecated.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:
SitesConfigurationBuilder.mergePolicy(XSiteEntryMergePolicy)
-
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.
-
-