Class SimpleClusteredVersion
- java.lang.Object
-
- org.infinispan.container.versioning.SimpleClusteredVersion
-
- All Implemented Interfaces:
EntryVersion
,IncrementableEntryVersion
@Immutable @ProtoTypeId(9) 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 class
SimpleClusteredVersion.Externalizer
-
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(java.lang.Object o)
int
getTopologyId()
long
getVersion()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getTopologyId
@ProtoField(number=1, defaultValue="-1") public int getTopologyId()
-
getVersion
@ProtoField(number=2, defaultValue="-1") 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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-