@ProtoTypeId(value=1007) public class TopologyIracVersion extends Object implements Comparable<TopologyIracVersion>
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.
| Constructor and Description |
|---|
TopologyIracVersion(int topologyId,
long version) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TopologyIracVersion other) |
boolean |
equals(Object o) |
int |
getTopologyId() |
long |
getVersion() |
int |
hashCode() |
TopologyIracVersion |
increment(int currentTopologyId) |
static TopologyIracVersion |
max(TopologyIracVersion v1,
TopologyIracVersion v2) |
static TopologyIracVersion |
newVersion(int currentTopologyId) |
String |
toString() |
@ProtoFactory
public TopologyIracVersion(int topologyId,
long version)
public static TopologyIracVersion newVersion(int currentTopologyId)
public static TopologyIracVersion max(TopologyIracVersion v1, TopologyIracVersion v2)
@ProtoField(number=1,
type=UINT32,
defaultValue="0")
public int getTopologyId()
@ProtoField(number=2,
type=UINT64,
defaultValue="0")
public long getVersion()
public TopologyIracVersion increment(int currentTopologyId)
public int compareTo(TopologyIracVersion other)
compareTo in interface Comparable<TopologyIracVersion>Copyright © 2021 JBoss by Red Hat. All rights reserved.