public static Message buildAckEpoch ( long epoch , Zxid lastZxid ) { ZabMessage . Zxid zxid = toProtoZxid ( lastZxid ) ; AckEpoch ackEpoch = AckEpoch . newBuilder ( ) . setAcknowledgedEpoch ( epoch ) . setLastZxid ( zxid ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . ACK_EPOCH ) . setAckEpoch ( ackEpoch ) . build ( ) ; }
Creates a ACK_EPOCH message .