Class TopologyIracVersion
java.lang.Object
org.infinispan.container.versioning.irac.TopologyIracVersion
- All Implemented Interfaces:
Comparable<TopologyIracVersion>
@ProtoTypeId(1007)
public class TopologyIracVersion
extends Object
implements Comparable<TopologyIracVersion>
The version stored per
CacheEntry for IRAC.
It is composed by the topology Id and a version. The topology Id is increment when the topology changes and the version on each update.
- Since:
- 11.0
- Author:
- Pedro Ruivo
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TopologyIracVersion other) static TopologyIracVersioncreate(int topologyId, long version) booleanstatic TopologyIracVersionfromString(String s) intlonginthashCode()increment(int currentTopologyId) static TopologyIracVersionstatic TopologyIracVersionnewVersion(int currentTopologyId) toString()
-
Field Details
-
NO_VERSION
-
-
Method Details
-
create
-
newVersion
-
max
-
fromString
-
getTopologyId
@ProtoField(number=1, type=UINT32, defaultValue="0") public int getTopologyId() -
getVersion
@ProtoField(number=2, type=UINT64, defaultValue="0") public long getVersion() -
increment
-
compareTo
- Specified by:
compareToin interfaceComparable<TopologyIracVersion>
-
toString
-
equals
-
hashCode
public int hashCode()
-