Class PartitionHandlingConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.PartitionHandlingConfiguration
-
- All Implemented Interfaces:
Matchable<PartitionHandlingConfiguration>
,BaseConfigurationInfo
,ConfigurationInfo
public class PartitionHandlingConfiguration extends java.lang.Object implements Matchable<PartitionHandlingConfiguration>, ConfigurationInfo
Controls how the cache handles partitioning and/or multiple node failures.- Since:
- 7.0
- Author:
- Mircea Markus
-
-
Field Summary
Fields Modifier and Type Field Description static ElementDefinition
ELEMENT_DEFINITION
static AttributeDefinition<java.lang.Boolean>
ENABLED
Deprecated.static AttributeDefinition<EntryMergePolicy>
MERGE_POLICY
static AttributeDefinition<PartitionHandling>
WHEN_SPLIT
-
Constructor Summary
Constructors Constructor Description PartitionHandlingConfiguration(AttributeSet attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSet
attributes()
boolean
enabled()
Deprecated.Since 9.2, replaced withwhenSplit()
.boolean
equals(java.lang.Object obj)
ElementDefinition
getElementDefinition()
int
hashCode()
EntryMergePolicy
mergePolicy()
boolean
resolveConflictsOnMerge()
java.lang.String
toString()
PartitionHandling
whenSplit()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
ENABLED
@Deprecated public static final AttributeDefinition<java.lang.Boolean> ENABLED
Deprecated.
-
WHEN_SPLIT
public static final AttributeDefinition<PartitionHandling> WHEN_SPLIT
-
MERGE_POLICY
public static final AttributeDefinition<EntryMergePolicy> MERGE_POLICY
-
ELEMENT_DEFINITION
public static final ElementDefinition ELEMENT_DEFINITION
-
-
Constructor Detail
-
PartitionHandlingConfiguration
public PartitionHandlingConfiguration(AttributeSet attributes)
-
-
Method Detail
-
enabled
@Deprecated public boolean enabled()
Deprecated.Since 9.2, replaced withwhenSplit()
.
-
whenSplit
public PartitionHandling whenSplit()
-
mergePolicy
public EntryMergePolicy mergePolicy()
-
attributes
public AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
resolveConflictsOnMerge
public boolean resolveConflictsOnMerge()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-