votinglistener.java
来自「JGRoups源码」· Java 代码 · 共 22 行
JAVA
22 行
package org.jgroups.blocks;/** * Implemetations of this interface are able to participate in voting process. * * @author Roman Rokytskyy (rrokytskyy@acm.org) */public interface VotingListener { /** * Each member is able to vote with <code>true</code> or <code>false</code> * messages. If the member does not know what to do with the * <code>decree</code> it should throw <code>VoteException</code>. Doing * this he will be excluded from voting process and will not influence * the result. * * @param 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. */ boolean vote(Object decree) throws VoteException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?