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
-
Method Summary
Modifier and TypeMethodDescriptioncompareTo
(IracEntryVersion other) Compares this instance with anotherIracEntryVersion
instance.boolean
void
forEach
(BiConsumer<ByteString, TopologyIracVersion> consumer) Iterates over all entries of this version as pairs (site name, site version).int
getTopology
(ByteString siteName) getVersion
(ByteString siteName) int
hashCode()
increment
(ByteString siteName, int topologyId) merge
(IracEntryVersion other) static IracEntryVersion
newVersion
(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 anotherIracEntryVersion
instance.- Parameters:
other
- The otherIracEntryVersion
instance.- Returns:
- A
InequalVersionComparisonResult
instance with the compare result.
-
merge
-
getVersion
-
getTopology
-
increment
-
toString
-
equals
-
hashCode
public int hashCode()
-