org.jgroups.blocks

Class TwoPhaseVotingAdapter.TwoPhaseVoteWrapper

Enclosing Class:
TwoPhaseVotingAdapter
Implemented Interfaces:
VotingListener

public static class TwoPhaseVotingAdapter.TwoPhaseVoteWrapper
extends java.lang.Object
implements VotingListener

Constructor Summary

TwoPhaseVoteWrapper(TwoPhaseVotingListener listener)

Method Summary

boolean
equals(Object other)
int
hashCode()
boolean
vote(Object decree)
Each member is able to vote with true or false messages.

Constructor Details

TwoPhaseVoteWrapper

public TwoPhaseVoteWrapper(TwoPhaseVotingListener listener)

Method Details

equals

public boolean equals(Object other)


hashCode

public int hashCode()


vote

public boolean vote(Object decree)
            throws VoteException
Each member is able to vote with 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.
Specified by:
vote in interface VotingListener

Parameters:
decree - object representing the decree of current voting.

Throws:
VoteException - if listener does not know the meaning of the decree and wants to be excluded from this voting.


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