voteresponseprocessor.java
来自「JGRoups源码」· Java 代码 · 共 27 行
JAVA
27 行
package org.jgroups.blocks;import org.jgroups.ChannelException;import org.jgroups.util.RspList;/** * VoteResultProcessor * Applications that use the VotingAdapter and/or TwoPhaseVotingAdapter can pass an implementation of this down the vote * calls, to intercept processing of the VoteResults returned by other nodes. * See the source of {@link org.jgroups.blocks.DistributedLockManager} for an example implementation. * * @author Robert Schaffar-Taurok (robert@fusion.at) * @version $Id: VoteResponseProcessor.java,v 1.2 2005/07/17 11:36:40 chrislott Exp $ */public interface VoteResponseProcessor { /** * Processes the responses returned by the other nodes. * @param responses The responses * @param consensusType The consensusType of the vote * @param decree The vote decree * @return boolean * @throws ChannelException */ public boolean processResponses(RspList responses, int consensusType, Object decree) throws ChannelException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?