JGRoups源码

源代码在线查看: digest.java

软件大小: 8273 K
上传用户: pangyi
关键词: JGRoups 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				// $Id: Digest.java,v 1.4 2005/08/08 12:45:42 belaban Exp $								package org.jgroups.protocols;								import org.jgroups.util.List;				import org.jgroups.util.Util;								import java.io.Serializable;																				/**				 * Message digest, collecting the highest sequence number seen so far for each member, plus the				 * messages that have higher seqnos than the ones given.				 */				public class Digest implements Serializable {				    public long[]      highest_seqnos=null; // highest seqno received for each member				    public final List  msgs=new List();     // msgs (for each member) whose seqnos are higher than the				    private static final long serialVersionUID = -1750370226005341630L;				    // ones sent by the FLUSH coordinator								    public Digest(int size) {				        highest_seqnos=new long[size];				    }								    public String toString() {				        StringBuffer retval=new StringBuffer();				        retval.append(Util.array2String(highest_seqnos)).append(" (").append(msgs.size()).append(" msgs)");				        return retval.toString();				    }				    				}							

相关资源