KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > blocks > VoteResponseProcessor


1 package org.jgroups.blocks;
2
3 import org.jgroups.ChannelException;
4 import org.jgroups.util.RspList;
5
6
7 /**
8  * VoteResultProcessor
9  * Applications that use the VotingAdapter and/or TwoPhaseVotingAdapter can pass an implementation of this down the vote
10  * calls, to intercept processing of the VoteResults returned by other nodes.
11  * See the source of {@link org.jgroups.blocks.DistributedLockManager} for an example implementation.
12  *
13  * @author Robert Schaffar-Taurok (robert@fusion.at)
14  * @version $Id: VoteResponseProcessor.java,v 1.2 2005/07/17 11:36:40 chrislott Exp $
15  */

16 public interface VoteResponseProcessor {
17     /**
18      * Processes the responses returned by the other nodes.
19      * @param responses The responses
20      * @param consensusType The consensusType of the vote
21      * @param decree The vote decree
22      * @return boolean
23      * @throws ChannelException
24      */

25     public boolean processResponses(RspList responses, int consensusType, Object JavaDoc decree) throws ChannelException;
26 }
27
Popular Tags