Class Vote


  • public class Vote
    extends Object
    • Constructor Detail

      • Vote

        public Vote​(long id,
                    long zxid)
      • Vote

        public Vote​(long id,
                    long zxid,
                    long peerEpoch)
      • Vote

        public Vote​(long id,
                    long zxid,
                    long electionEpoch,
                    long peerEpoch)
      • Vote

        public Vote​(int version,
                    long id,
                    long zxid,
                    long electionEpoch,
                    long peerEpoch,
                    QuorumPeer.ServerState state)
      • Vote

        public Vote​(long id,
                    long zxid,
                    long electionEpoch,
                    long peerEpoch,
                    QuorumPeer.ServerState state)
    • Method Detail

      • getVersion

        public int getVersion()
      • getId

        public long getId()
      • getZxid

        public long getZxid()
      • getElectionEpoch

        public long getElectionEpoch()
      • getPeerEpoch

        public long getPeerEpoch()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object