public class FineClusterMessageSender extends java.lang.Object implements ClusterMessageSender
ClusterMessageSender.Callback, ClusterMessageSender.CastCallback
构造器和说明 |
---|
FineClusterMessageSender(Channel jChannel,
MessageDispatcher jDispatcher,
MessageWrapper<?> wrapper) |
限定符和类型 | 方法和说明 |
---|---|
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)
异步发送
|
public FineClusterMessageSender(Channel jChannel, MessageDispatcher jDispatcher, MessageWrapper<?> wrapper)
public ClusterMessage send(ClusterNode node, ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options) throws java.lang.Exception
ClusterMessageSender
send
在接口中 ClusterMessageSender
java.lang.Exception
public java.util.Map<ClusterNode,ClusterMessage> cast(ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options) throws java.lang.Exception
ClusterMessageSender
cast
在接口中 ClusterMessageSender
java.lang.Exception
public void send(ClusterNode address, ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options, ClusterMessageSender.Callback callback) throws java.lang.Exception
ClusterMessageSender
send
在接口中 ClusterMessageSender
java.lang.Exception
public void cast(ClusterMessageReceiver receiver, ClusterMessage message, RequestOptions options, ClusterMessageSender.CastCallback castCallback) throws java.lang.Exception
ClusterMessageSender
cast
在接口中 ClusterMessageSender
java.lang.Exception