public static Message buildElectionInfo ( String vote , Zxid lastZxid , long ackEpoch , long round , boolean electing ) { ZabMessage . Zxid zxid = toProtoZxid ( lastZxid ) ; ZabMessage . ElectionInfo ei = ZabMessage . ElectionInfo . newBuilder ( ) . setVote ( vote ) . setZxid ( zxid ) . setAckEpoch ( ackEpoch ) . setIsElecting ( electing ) . setRound ( round ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . ELECTION_INFO ) . setElectionInfo ( ei ) . build ( ) ; }
Creates the ELECTION_INFO message .