01: package org.jgroups.blocks;
02:
03: import org.jgroups.ChannelException;
04: import org.jgroups.util.RspList;
05:
06: /**
07: * VoteResultProcessor
08: * Applications that use the VotingAdapter and/or TwoPhaseVotingAdapter can pass an implementation of this down the vote
09: * calls, to intercept processing of the VoteResults returned by other nodes.
10: * See the source of {@link org.jgroups.blocks.DistributedLockManager} for an example implementation.
11: *
12: * @author Robert Schaffar-Taurok (robert@fusion.at)
13: * @version $Id: VoteResponseProcessor.java,v 1.2 2005/07/17 11:36:40 chrislott Exp $
14: */
15: public interface VoteResponseProcessor {
16: /**
17: * Processes the responses returned by the other nodes.
18: * @param responses The responses
19: * @param consensusType The consensusType of the vote
20: * @param decree The vote decree
21: * @return boolean
22: * @throws ChannelException
23: */
24: public boolean processResponses(RspList responses,
25: int consensusType, Object decree) throws ChannelException;
26: }
|