org.jgroups.blocks

Class VotingAdapter.VoteResult

Enclosing Class:
VotingAdapter
Implemented Interfaces:
Serializable
Known Direct Subclasses:
VotingAdapter.FailureVoteResult

public static class VotingAdapter.VoteResult
extends java.lang.Object
implements Serializable

This class represents the result of local voting. It contains a number of positive and negative votes collected during local voting.

Method Summary

void
addVote(boolean vote)
int
getNegativeVotes()
int
getPositiveVotes()
String
toString()

Method Details

addVote

public void addVote(boolean vote)


getNegativeVotes

public int getNegativeVotes()


getPositiveVotes

public int getPositiveVotes()


toString

public String toString()


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.