Raft distributed consensus protocol in Java