Package net.tomp2p.message

Examples of net.tomp2p.message.Message.recipient()


          @Override
          public void run() {
            semaphore.release();
           
            Message request = futureResponse.request();
            if(request.recipient().isSlow() && request.command() != Commands.PING.getNr() && request.command() != Commands.NEIGHBOR.getNr()) {
              // If the request goes to a slow peer, the channel can be closed until the response arrives
              LOG.debug("Ignoring channel close event because recipient is slow peer");
            } else {
              futureResponse.responseNow();
            }
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.