Class VotingAdapter.VoteResult

java.lang.Object
org.jgroups.blocks.VotingAdapter.VoteResult
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
VotingAdapter.FailureVoteResult
Enclosing class:
VotingAdapter

public static class VotingAdapter.VoteResult extends Object implements Serializable
This class represents the result of local voting. It contains a number of positive and negative votes collected during local voting.
See Also:
  • Constructor Details

    • VoteResult

      public VoteResult()
  • Method Details

    • addVote

      public void addVote(boolean vote)
    • getPositiveVotes

      public int getPositiveVotes()
    • getNegativeVotes

      public int getNegativeVotes()
    • toString

      public String toString()
      Overrides:
      toString in class Object