Class SimpleClusteredVersion
java.lang.Object
org.infinispan.container.versioning.SimpleClusteredVersion
- All Implemented Interfaces:
EntryVersion
,IncrementableEntryVersion
@Immutable
@ProtoTypeId(9)
public class SimpleClusteredVersion
extends Object
implements IncrementableEntryVersion
A simple versioning scheme that is cluster-aware
- Since:
- 5.1
- Author:
- Manik Surtani
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompareTo
(EntryVersion other) Compares the given version against the current instance.boolean
int
long
int
hashCode()
toString()
-
Constructor Details
-
SimpleClusteredVersion
@ProtoFactory public SimpleClusteredVersion(int topologyId, long version)
-
-
Method Details
-
getTopologyId
@ProtoField(number=1, defaultValue="-1") public int getTopologyId() -
getVersion
@ProtoField(number=2, defaultValue="-1") public long getVersion() -
compareTo
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
-
equals
-
hashCode
public int hashCode() -
toString
-