Package net.tomp2p.p2p.builder

Examples of net.tomp2p.p2p.builder.ShutdownBuilder


           
            FutureChannelCreator fcc = recv1.connectionBean().reservation().create(1, 0);
            fcc.awaitUninterruptibly();
            cc = fcc.channelCreator();
           
            ShutdownBuilder builder = new ShutdownBuilder(sender);
           
            sender.quitRPC().quit(recv1.peerAddress(), builder, cc);
            sender.shutdown().await();
            // don't care about the sender
            Assert.assertEquals(0, recv1.peerBean().peerMap().all().size());
View Full Code Here


   * Sends a friendly shutdown message to my close neighbors in the DHT.
   *
   * @return A builder for shutdown that runs asynchronous.
   */
    public ShutdownBuilder announceShutdown() {
        return new ShutdownBuilder(this);
    }
View Full Code Here

TOP

Related Classes of net.tomp2p.p2p.builder.ShutdownBuilder

Copyright © 2018 www.massapicom. 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.