Class StateSummary


  • public class StateSummary
    extends java.lang.Object
    This class encapsulates the state comparison logic. Specifically, how two different states are compared.
    • Constructor Detail

      • StateSummary

        public StateSummary​(long currentEpoch,
                            long lastZxid)
    • Method Detail

      • getCurrentEpoch

        public long getCurrentEpoch()
      • getLastZxid

        public long getLastZxid()
      • isMoreRecentThan

        public boolean isMoreRecentThan​(StateSummary ss)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object