Class BooleanVote
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.quorum.Vote<Boolean>
org.apache.activemq.artemis.core.server.cluster.quorum.BooleanVote
- Direct Known Subclasses:
ServerConnectVote
a simple yes.no vote
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(ActiveMQBuffer buff) voidencode(ActiveMQBuffer buff) getVote()booleanWhether we should ask the target server for an answer or decide ourselves, for instance if we couldn't connect to the node in the first placetoString()
-
Field Details
-
vote
protected boolean vote
-
-
Constructor Details
-
BooleanVote
public BooleanVote(boolean vote)
-
-
Method Details
-
isRequestServerVote
public boolean isRequestServerVote()Description copied from class:VoteWhether we should ask the target server for an answer or decide ourselves, for instance if we couldn't connect to the node in the first place- Specified by:
isRequestServerVotein classVote<Boolean>
-
getVote
-
getVoteMap
- Overrides:
getVoteMapin classVote<Boolean>
-
encode
-
decode
-
toString
-