public interface ClusterMessageSender
限定符和类型 | 接口和说明 |
---|---|
static interface |
ClusterMessageSender.Callback
异步发送完成回调
|
static interface |
ClusterMessageSender.CastCallback
广播完成回调
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<ClusterNode,ClusterMessage> |
cast(ClusterMessageReceiver receiver,
ClusterMessage message,
RequestOptions options)
对特定接受者广播消息
|
void |
cast(ClusterMessageReceiver receiver,
ClusterMessage message,
RequestOptions options,
ClusterMessageSender.CastCallback castCallback)
异步广播
|
ClusterMessage |
send(ClusterNode node,
ClusterMessageReceiver receiver,
ClusterMessage message,
RequestOptions options)
指定节点和接收者发送消息
|
void |
send(ClusterNode address,
ClusterMessageReceiver receiver,
ClusterMessage message,
RequestOptions options,
ClusterMessageSender.Callback callback)
异步发送
|
ClusterMessage send(ClusterNode node, ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options) throws java.lang.Exception
java.lang.Exception
java.util.Map<ClusterNode,ClusterMessage> cast(ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options) throws java.lang.Exception
java.lang.Exception
void send(ClusterNode address, ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options, ClusterMessageSender.Callback callback) throws java.lang.Exception
java.lang.Exception
void cast(ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options, ClusterMessageSender.CastCallback castCallback) throws java.lang.Exception
java.lang.Exception