Class SimpleClusteredVersion
- java.lang.Object
-
- org.infinispan.container.versioning.SimpleClusteredVersion
-
- All Implemented Interfaces:
EntryVersion,IncrementableEntryVersion
@Immutable public class SimpleClusteredVersion extends java.lang.Object implements IncrementableEntryVersion
A simple versioning scheme that is cluster-aware- Since:
- 5.1
- Author:
- Manik Surtani
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleClusteredVersion.Externalizer
-
Field Summary
Fields Modifier and Type Field Description inttopologyIdThe cache topology id in which it was first created.longversion
-
Constructor Summary
Constructors Constructor Description SimpleClusteredVersion(int topologyId, long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InequalVersionComparisonResultcompareTo(EntryVersion other)Compares the given version against the current instance.booleanequals(java.lang.Object o)longgetVersion()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getVersion
public long getVersion()
-
compareTo
public InequalVersionComparisonResult compareTo(EntryVersion other)
Description copied from interface:EntryVersionCompares the given version against the current instance.- Specified by:
compareToin interfaceEntryVersion- Parameters:
other- the other version to compare against- Returns:
- a InequalVersionComparisonResult instance
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-