Class SimpleClusteredVersion
- java.lang.Object
-
- org.infinispan.container.versioning.SimpleClusteredVersion
-
- All Implemented Interfaces:
EntryVersion,IncrementableEntryVersion
@Immutable public class SimpleClusteredVersion extends 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(Object o)longgetVersion()inthashCode()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
-
-