Class StateSummary


  • public class StateSummary
    extends 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object