Examples of waitingForCount()


Examples of freenet.node.PeerNode.SlotWaiter.waitingForCount()

                // This is only an issue with next. Hence the other places we route explicitly so there is no risk as they won't return the same node repeatedly after it is no longer routable.
              }
            }
       
                  if(next.isLowCapacity(realTimeFlag)) {
                    if(waiter.waitingForCount() == 1 // if not, already accepted
                        && canRerouteWhileWaiting) {
                      canWaitFor++;
                      // Wait for another one if the first is low capacity.
                  // Nodes we were waiting for that then became backed off will have been removed from the list.
                  HashSet<PeerNode> exclude = waiter.waitingForList();
View Full Code Here

Examples of freenet.node.PeerNode.SlotWaiter.waitingForCount()

                  }
          }
         
          if(realTimeFlag) canWaitFor++;
          // Skip it and go straight to rerouting if no next, as above.
          if(expectedAcceptState == null && waiter.waitingForCount() <= canWaitFor
              && canRerouteWhileWaiting) {
                // Wait for another one if realtime.
          // Nodes we were waiting for that then became backed off will have been removed from the list.
          HashSet<PeerNode> exclude = waiter.waitingForList();
          exclude.addAll(nodesRoutedTo);
View Full Code Here

Examples of freenet.node.PeerNode.SlotWaiter.waitingForCount()

                }
          }
         
          if(addedExtraNode) canWaitFor++;
          // Skip it and go straight to rerouting if no next, as above.
          if(expectedAcceptState == null && waiter.waitingForCount() <= canWaitFor
              && canRerouteWhileWaiting) {
                // Wait for another one if realtime.
          // Nodes we were waiting for that then became backed off will have been removed from the list.
          HashSet<PeerNode> exclude = waiter.waitingForList();
          exclude.addAll(nodesRoutedTo);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.