Class StateSummary
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.StateSummary
-
public class StateSummary extends Object
This class encapsulates the state comparison logic. Specifically, how two different states are compared.
-
-
Constructor Summary
Constructors Constructor Description StateSummary(long currentEpoch, long lastZxid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getCurrentEpoch()
long
getLastZxid()
int
hashCode()
boolean
isMoreRecentThan(StateSummary ss)
-
-
-
Method Detail
-
getCurrentEpoch
public long getCurrentEpoch()
-
getLastZxid
public long getLastZxid()
-
isMoreRecentThan
public boolean isMoreRecentThan(StateSummary ss)
-
-