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
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(TopologyIracVersion other) static TopologyIracVersion
create
(int topologyId, long version) boolean
static TopologyIracVersion
fromString
(String s) int
long
int
hashCode()
increment
(int currentTopologyId) static TopologyIracVersion
static TopologyIracVersion
newVersion
(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:
compareTo
in interfaceComparable<TopologyIracVersion>
-
toString
-
equals
-
hashCode
public int hashCode()
-