Examples of addWaitingFor()


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

              Logger.minor(this, "Cannot send to "+next+" realtime="+realTimeFlag);
            waitedForLoadManagement = true;
            if(waiter == null)
              waiter = PeerNode.createSlotWaiter(origTag, type, false, realTimeFlag, source);
            if(next != null) {
              if(!waiter.addWaitingFor(next)) {
                  dontDecrementHTLThisTime = true;
                      routeRequests();
                      return;
                // Will be rerouted.
                // This is essential to avoid adding the same bogus node again and again.
View Full Code Here

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

                  // 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.
                        // We will not reuse alsoWaitFor if it is disconnected etc.
                        if(logMINOR) Logger.minor(this, "Waiting for "+next+" and "+alsoWaitFor+" on "+waiter+" because realtime");
                        PeerNode matched;
                try {
View Full Code Here

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

          // 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.
                  // We will not reuse alsoWaitFor if it is disconnected etc.
                  if(logMINOR) Logger.minor(this, "Waiting for "+next+" and "+alsoWaitFor+" on "+waiter+" because realtime");
                  PeerNode matched;
            try {
View Full Code Here

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

          // 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.
                  // We will not reuse alsoWaitFor if it is disconnected etc.
                  if(logMINOR) Logger.minor(this, "Waiting for "+next+" and "+alsoWaitFor+" on "+waiter+" because realtime");
                  PeerNode matched;
            try {
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.