public static class TwoPhaseVotingAdapter.TwoPhaseVoteWrapper extends java.lang.Object implements VotingListener
Constructor and Description |
---|
TwoPhaseVotingAdapter.TwoPhaseVoteWrapper(TwoPhaseVotingListener listener) |
public TwoPhaseVotingAdapter.TwoPhaseVoteWrapper(TwoPhaseVotingListener listener)
public boolean vote(java.lang.Object decree) throws VoteException
VotingListener
true
or false
messages. If the member does not know what to do with the
decree
it should throw VoteException
. Doing
this he will be excluded from voting process and will not influence
the result.vote
in interface VotingListener
decree
- object representing the decree of current voting.VoteException
- if listener does not know the meaning of the
decree and wants to be excluded from this voting.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.