CVS update: JGroups/src/org/jgroups/stack NakReceiverWindow.java
"Bela Ban" <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/08/27 09:25:44
Modified: src/org/jgroups/stack NakReceiverWindow.java
Log:
added getDigest()
Revision Changes Path
1.79 +15 -1 JGroups/src/org/jgroups/stack/NakReceiverWindow.java
Index: NakReceiverWindow.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/stack/NakReceiverWindow.java,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- NakReceiverWindow.java 14 Jun 2010 08:10:51 -0000 1.78
+++ NakReceiverWindow.java 27 Aug 2010 09:25:44 -0000 1.79
@@ -48,7 +48,7 @@
*
* @author Bela Ban May 27 1999, May 2004, Jan 2007
* @author John Georgiadis May 8 2001
- * @version $Id: NakReceiverWindow.java,v 1.78 2010/06/14 08:10:51 belaban Exp $
+ * @version $Id: NakReceiverWindow.java,v 1.79 2010/08/27 09:25:44 belaban Exp $
*/
public class NakReceiverWindow {
@@ -508,6 +508,20 @@
}
+ /** Returns the lowest, highest delivered and highest received seqnos */
+ public long[] getDigest() {
+ lock.readLock().lock();
+ try {
+ long[] retval=new long[3];
+ retval[0]=low;
+ retval[1]=highest_delivered;
+ retval[2]=highest_received;
+ return retval;
+ }
+ finally {
+ lock.readLock().unlock();
+ }
+ }
/**
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d