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 Details

    • StateSummary

      public StateSummary(long currentEpoch, long lastZxid)
  • Method Details

    • getCurrentEpoch

      public long getCurrentEpoch()
    • getLastZxid

      public long getLastZxid()
    • isMoreRecentThan

      public boolean isMoreRecentThan(StateSummary ss)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object