Class IracEntryVersion
- java.lang.Object
-
- org.infinispan.container.versioning.irac.IracEntryVersion
-
@ProtoTypeId(1006) public class IracEntryVersion extends Object
An entry version for the IRAC algorithm (async cross site replication).It is represented as a vector clock where each site keeps it version.
The site version is composed as a pair (topology id, version).
- Since:
- 11.0
- Author:
- Pedro Ruivo
- See Also:
TopologyIracVersion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIracEntryVersion.MapEntry
-
Constructor Summary
Constructors Constructor Description IracEntryVersion(Map<String,TopologyIracVersion> vectorClock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InequalVersionComparisonResultcompareTo(IracEntryVersion other)Compares this instance with anotherIracEntryVersioninstance.booleanequals(Object o)voidforEach(BiConsumer<String,TopologyIracVersion> consumer)Iterates over all entries of this version as pairs (site name, site version).inthashCode()Map<String,TopologyIracVersion>toMap()Converts this instance to aMap.StringtoString()
-
-
-
Constructor Detail
-
IracEntryVersion
public IracEntryVersion(Map<String,TopologyIracVersion> vectorClock)
-
-
Method Detail
-
toMap
public Map<String,TopologyIracVersion> toMap()
Converts this instance to aMap.The map cannot be modified!.
- Returns:
- The
Maprepresentation of this version.
-
forEach
public void forEach(BiConsumer<String,TopologyIracVersion> consumer)
Iterates over all entries of this version as pairs (site name, site version).- Parameters:
consumer- TheBiConsumer.
-
compareTo
public InequalVersionComparisonResult compareTo(IracEntryVersion other)
Compares this instance with anotherIracEntryVersioninstance.- Parameters:
other- The otherIracEntryVersioninstance.- Returns:
- A
InequalVersionComparisonResultinstance with the compare result.
-
-