Examples of FutureRelay


Examples of net.tomp2p.relay.FutureRelay

    // open new relay when one failed
    distributedRelay.addRelayListener(new RelayListener() {
      @Override
      public void relayFailed(PeerAddress relayAddress) {
        // one failed, add new one
        final FutureRelay futureRelay2 = new FutureRelay();
        distributedRelay.setupRelays(futureRelay2, manualRelays, maxFail);
        peer.notifyAutomaticFutures(futureRelay2);
      }
    });
View Full Code Here

Examples of net.tomp2p.relay.FutureRelay

      @Override
      public void operationComplete(FutureBootstrap future) throws Exception {
        if (future.isSuccess()) {
          // setup relay
          LOG.debug("bootstrap completed");
          final FutureRelay futureRelay = new FutureRelay();
          final DistributedRelay distributedRelay = startSetupRelay(futureRelay);
          futureBootstrapNAT.futureRelay(futureRelay);
          futureRelay.addListener(new BaseFutureAdapter<FutureRelay>() {

            @Override
            public void operationComplete(FutureRelay future) throws Exception {
              // find neighbors again
              if (future.isSuccess()) {
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.