Class IracEntryVersion
java.lang.Object
org.infinispan.container.versioning.irac.IracEntryVersion
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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncompareTo(IracEntryVersion other) Compares this instance with anotherIracEntryVersioninstance.booleanvoidforEach(BiConsumer<ByteString, TopologyIracVersion> consumer) Iterates over all entries of this version as pairs (site name, site version).intgetTopology(ByteString siteName) getVersion(ByteString siteName) inthashCode()increment(ByteString siteName, int topologyId) merge(IracEntryVersion other) static IracEntryVersionnewVersion(ByteString site, TopologyIracVersion version) toString()
-
Method Details
-
newVersion
-
forEach
Iterates over all entries of this version as pairs (site name, site version).- Parameters:
consumer- TheBiConsumer.
-
compareTo
Compares this instance with anotherIracEntryVersioninstance.- Parameters:
other- The otherIracEntryVersioninstance.- Returns:
- A
InequalVersionComparisonResultinstance with the compare result.
-
merge
-
getVersion
-
getTopology
-
increment
-
toString
-
equals
-
hashCode
public int hashCode()
-