|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.blocks.TwoPhaseVotingAdapter.TwoPhaseVoteWrapper
Constructor Summary | |
TwoPhaseVotingAdapter.TwoPhaseVoteWrapper(TwoPhaseVotingListener listener)
|
Method Summary | |
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
boolean |
vote(java.lang.Object decree)
Each member is able to vote with true or false
messages. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TwoPhaseVotingAdapter.TwoPhaseVoteWrapper(TwoPhaseVotingListener listener)
Method Detail |
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()
public boolean equals(java.lang.Object other)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |