Package org.hive2hive.core.network.messages.direct.TestDirectMessageWithReply

Examples of org.hive2hive.core.network.messages.direct.TestDirectMessageWithReply.TestCallBackHandler


    String contentKey = NetworkTestUtil.randomString();
    // create a message with target node B
    TestDirectMessageWithReply message = new TestDirectMessageWithReply(nodeB.getConnection().getPeer()
        .getPeerAddress(), contentKey);
    // create and add a callback handler
    TestCallBackHandler callBackHandler = message.new TestCallBackHandler(nodeA);
    message.setCallBackHandler(callBackHandler);

    // send message
    assertTrue(nodeA.getMessageManager().sendDirect(message, getPublicKey(nodeB)));
View Full Code Here

TOP

Related Classes of org.hive2hive.core.network.messages.direct.TestDirectMessageWithReply.TestCallBackHandler

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.