private void transitionToVoted(ReplicaKey candidateKey, int epoch) {
        quorum.transitionToVoted(epoch, candidateKey);
        maybeFireLeaderChange();
        resetConnections();
    }
Create a new instance.

Note that if the node ID is empty, then the client will behave as a
non-participating observer.
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java