Package net.tomp2p.futures

Examples of net.tomp2p.futures.FutureResponse.responseMessage()


        // success if we could add the tracker, but also if the tracker
        // is full and sent a denied message
        boolean isFull = futureResponse != null && futureResponse.responseMessage() != null
                && futureResponse.responseMessage().type() == Type.DENIED;
        boolean isPartial = futureResponse != null && futureResponse.responseMessage() != null
                && futureResponse.responseMessage().type() == Type.PARTIALLY_OK;
        if (future.isSuccess() || isFull) {
          if (!isFull) {
            successAsked.add(futureResponse.request().recipient());
          }
          TrackerData newDataMap = futureResponse.responseMessage().trackerData(0);
View Full Code Here


                && futureResponse.responseMessage().type() == Type.PARTIALLY_OK;
        if (future.isSuccess() || isFull) {
          if (!isFull) {
            successAsked.add(futureResponse.request().recipient());
          }
          TrackerData newDataMap = futureResponse.responseMessage().trackerData(0);
          if (newDataMap != null) {
            Collection<PeerStatistic> newPeers = newDataMap.peerAddresses().keySet();
            mergeDiff(secondaryQueue, newPeers, alreadyAsked, queueToAsk);
            storeResult(peerOnTracker, newDataMap, futureResponse.request().recipient(), knownPeers);
            for(PeerStatistic peerStatatistic:newPeers) {
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.