Request
- 请求类型Response
- 结果类型,允许Voidpublic interface ClusterClient<Request,Response>
限定符和类型 | 接口和说明 |
---|---|
static class |
ClusterClient.MessageTag
消息标签
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<ClusterNode,Response> |
cast(Request request)
广播
|
void |
cast(Request request,
MessageCastHandler<Response> castHandler)
异步广播
|
Response |
send(ClusterNode address,
Request request)
发送
|
void |
send(ClusterNode address,
Request request,
MessageResultHandler<Response> resultHandler)
异步发送
|
Response send(ClusterNode address, Request request) throws java.lang.Exception
java.lang.Exception
java.util.Map<ClusterNode,Response> cast(Request request) throws java.lang.Exception
java.lang.Exception
void send(ClusterNode address, Request request, MessageResultHandler<Response> resultHandler) throws java.lang.Exception
java.lang.Exception
void cast(Request request, MessageCastHandler<Response> castHandler) throws java.lang.Exception
java.lang.Exception