public class SGMessagingFramework<E extends Endpoint> extends Object
this class provides features to send a message, which is a subclass of
SGMessagingFramework.SGRequestMessage, to a remote node and get an ack and a reply
message, which is a subclass of SGMessagingFramework.SGReplyMessage. when a reply message
arrives, SGRequestMessage#onReceivingReply(SkipGraph, SGReplyMessage)
is called. if ack message timeouts,
SGRequestMessage#onTimeOut(SkipGraph) is called.
the destination of the ack message and the reply message may be different node.
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
SGMessagingFramework.SGReplyMessage<E extends Endpoint>
a base class for a reply message.
|
static class |
SGMessagingFramework.SGRequestMessage<E extends Endpoint>
a base class for a request message.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
ACK_TIMEOUT_THRES |
static int |
ACK_TIMEOUT_TIMER |
static int |
DUMMY_MSGID |
static int |
MSGSTORE_EXPIRATION_TASK_PERIOD |
| コンストラクタと説明 |
|---|
SGMessagingFramework(SkipGraph<E> sg) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
ackReceived(int msgId) |
void |
fin() |
void |
replyMsgReceived(SGMessagingFramework.SGReplyMessage<E> repl) |
void |
requestMsgReceived(SGMessagingFramework.SGRequestMessage<E> req) |
public static final int DUMMY_MSGID
public static int ACK_TIMEOUT_THRES
public static int ACK_TIMEOUT_TIMER
public static int MSGSTORE_EXPIRATION_TASK_PERIOD
public void fin()
public void requestMsgReceived(SGMessagingFramework.SGRequestMessage<E> req)
public void ackReceived(int msgId)
public void replyMsgReceived(SGMessagingFramework.SGReplyMessage<E> repl)
Copyright © 2017. All rights reserved.