CVS update: JGroups/src/org/jgroups/protocols FC.java

"Bela Ban" <[email protected]>
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/08/12 14:39:16

  Modified:    src/org/jgroups/protocols FC.java
  Log:
  defaulting min_threshold to 0.6
  
  Revision  Changes    Path
  1.117     +9 -6      JGroups/src/org/jgroups/protocols/FC.java
  
  Index: FC.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/FC.java,v
  retrieving revision 1.116
  retrieving revision 1.117
  diff -u -r1.116 -r1.117
  --- FC.java	15 Jun 2010 06:44:35 -0000	1.116
  +++ FC.java	12 Aug 2010 14:39:16 -0000	1.117
  @@ -32,7 +32,7 @@
    * <li>Receivers don't send the full credits (max_credits), but rather tha actual number of bytes received
    * <ol/>
    * @author Bela Ban
  - * @version $Id: FC.java,v 1.116 2010/06/15 06:44:35 belaban Exp $
  + * @version $Id: FC.java,v 1.117 2010/08/12 14:39:16 belaban Exp $
    */
   @MBean(description="Simple flow control protocol based on a credit system")
   public class FC extends Protocol {
  @@ -72,11 +72,14 @@
   
   
       /**
  -     * If credits fall below this limit, we send more credits to the sender. (We also send when
  -     * credits are exhausted (0 credits left))
  -     */
  -    @Property(description="If credits (bytes) used so far fall below this limit, we send more credits to the sender")
  -    private double min_threshold=0.25;
  +     * If we've received (min_threshold * max_credits) bytes from P, we send more credits to P. Example: if
  +     * max_credits is 1'000'000, and min_threshold 0.25, then we send ca. 250'000 credits to P once we've
  +     * received 250'000 bytes from P. 
  +     */
  +    @Property(description="The threshold (as a percentage of max_credits) at which a receiver sends more credits to " +
  +            "a sender. Example: if max_credits is 1'000'000, and min_threshold 0.25, then we send ca. 250'000 credits " +
  +            "to P once we've received 250'000 bytes from P")
  +    private double min_threshold=0.60;
   
       /**
        * Computed as <tt>max_credits</tt> times <tt>min_theshold</tt>. If explicitly set, this will
  
  
  

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.