Package io.atomix.raft.utils
Class SimpleVoteQuorum
java.lang.Object
io.atomix.raft.utils.SimpleVoteQuorum
- All Implemented Interfaces:
VoteQuorum
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleVoteQuorum
- Parameters:
callback- will be called with the result of the vote, either true or false.members- All members participating, including the local member.
-
-
Method Details
-
succeed
- Specified by:
succeedin interfaceVoteQuorum
-
fail
- Specified by:
failin interfaceVoteQuorum
-
cancel
public void cancel()Cancels the quorum. Once this method has been called, the quorum will be marked complete and the handler will never be called.- Specified by:
cancelin interfaceVoteQuorum
-