Examples of waitingForList()


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

                    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();
                  exclude.addAll(nodesRoutedTo);
                      PeerNode alsoWaitFor = closerPeer(exclude, now, true);
                      if(alsoWaitFor != null) {
                        waiter.addWaitingFor(alsoWaitFor);
                        // We do not need to check the return value here.
View Full Code Here

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

          // 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);
                PeerNode alsoWaitFor = closerPeer(exclude, now, true);
                if(alsoWaitFor != null) {
                  waiter.addWaitingFor(alsoWaitFor);
                  // We do not need to check the return value here.
View Full Code Here

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

          // 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);
                PeerNode alsoWaitFor = closerPeer(exclude, now, true);
                if(alsoWaitFor != null) {
                  waiter.addWaitingFor(alsoWaitFor);
                  // We do not need to check the return value here.
View Full Code Here

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

            if(!addedExtraNode) {
              // Can add another one if it's taking ages.
              // However after adding it once, we will wait for as long as it takes.
              maxWait = getShortSlotWaiterTimeout();
            }
            HashSet<PeerNode> waitedFor = waiter.waitingForList();
            PeerNode waited;
            // FIXME figure out a way to wake-up mid-wait if origTag.hasSourceRestarted().
          try {
            waited = waiter.waitForAny(maxWait, addedExtraNode);
          } catch (SlotWaiterFailedException e) {
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.