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 class
SimpleClusteredVersion.Externalizer
-
Field Summary
Fields Modifier and Type Field Description int
topologyId
The cache topology id in which it was first created.long
version
-
Constructor Summary
Constructors Constructor Description SimpleClusteredVersion(int topologyId, long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InequalVersionComparisonResult
compareTo(EntryVersion other)
Compares the given version against the current instance.boolean
equals(Object o)
long
getVersion()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getVersion
public long getVersion()
-
compareTo
public InequalVersionComparisonResult compareTo(EntryVersion other)
Description copied from interface:EntryVersion
Compares the given version against the current instance.- Specified by:
compareTo
in interfaceEntryVersion
- Parameters:
other
- the other version to compare against- Returns:
- a InequalVersionComparisonResult instance
-
-