パッケージ org.piax.gtrans.ov.ring

クラス MessagingFramework

java.lang.Object
org.piax.gtrans.ov.ring.MessagingFramework

public class MessagingFramework
extends Object
messaging framework for structured p2p networks.

this class provides features to send a message, which is a subclass of RequestMessage, to a remote node and get an ack and a reply message, which is a subclass of ReplyMessage. when a reply message arrives, RequestMessage.onReceivingReply(ReplyMessage) is called. if ack message timeouts, RequestMessage.onResponseTimeout() is called.

the destination of the ack message and the reply message may be different node.