| 限定符和类型 | 方法和说明 |
|---|---|
protected Response |
BaseCmd.failed(ErrorCode errorCode)
返回预定义的失败对象
Returns the predefined failed object
|
protected Response |
BaseCmd.failed(ErrorCode errorCode,
String errMsg)
预定义失败对象,同时带有自定义错误消息
Predefined failed object with a custom error message
|
protected Response |
BaseCmd.failed(String errMsg)
返回自定义错误消息的失败对象
Returns the failed object of the custom error message
|
protected Response |
BaseCmd.success()
返回基本的成功对象
Returns the basic success object
|
protected Response |
BaseCmd.success(Object responseData)
返回有特定内容的成功对象
Returns a success object with specific content
|
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
ParamCmd.paramTest(Map map) |
Response |
KernelCmd4Test.registerAPI(Map<String,Object> map) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
BaseInvoke.callBack(Response response)
自动回调的类需要重写的方法
A method that needs to be rewritten for a class that calls back automatically
|
void |
KernelInvoke.callBack(Response response)
自动回调的类需要重写的方法
A method that needs to be rewritten for a class that calls back automatically
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response |
MessageUtil.newFailResponse(String requestId,
ErrorCode errorCode)
构造一个执行失败的Response对象
Constructing a new Response object
|
static Response |
MessageUtil.newFailResponse(String requestId,
String msg)
构造一个执行失败的Response对象
Constructing a new Response object
|
static Response |
MessageUtil.newResponse(String requestId,
int status,
String comment)
构造一个Response对象
Constructing a new Response object
|
static Response |
MessageUtil.newSuccessResponse(String requestId)
构造一个执行成功的Response对象
Constructing a new Response object
|
static Response |
MessageUtil.newSuccessResponse(String requestId,
String msg)
构造一个执行成功的Response对象
Constructing a new Response object
|
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
ModuleStatusCmd.connectReady(Map<String,Object> param) |
Response |
ModuleStatusCmd.followModule(Map<String,Object> param) |
Response |
ModuleStatusCmd.listenerDependenciesReady(Map<String,Object> map) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RegisterInvoke.callBack(Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
LinkedBlockingQueue<Response> |
ConnectData.getRequestEventResponseQueue() |
LinkedBlockingQueue<Response> |
ConnectData.getResponseAutoQueue() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Response |
ConnectManager.getRealResponse(String cmd,
String messageId,
Response response)
封装真正的返回结果
Encapsulate the true return result
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ConnectManager.eventTrigger(String cmd,
Response response)
订阅接口被调用,判断订阅该接口的事件是否触发
|
static Response |
ConnectManager.getRealResponse(String cmd,
String messageId,
Response response)
封装真正的返回结果
Encapsulate the true return result
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response |
ResponseMessageProcessor.requestAndResponse(String role,
String cmd,
Map params)
发送Request,并等待Response
Send Request and wait for Response
|
static Response |
ResponseMessageProcessor.requestAndResponse(String role,
String cmd,
Map params,
long timeOut)
发送Request,并等待Response
Send Request and wait for Response
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RequestMessageProcessor.responseWithEventCount(io.netty.channel.Channel channel,
Response realResponse)
处理Request,如果达到EventCount的发送条件,则发送
Processing Request, if EventCount's sending condition is met, then send
|
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Response> |
ResponseContainer.getFuture() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ResponseContainer.setFuture(CompletableFuture<Response> future) |
| 构造器和说明 |
|---|
ResponseContainer(String messageId,
CompletableFuture<Response> future) |
Copyright © 2021. All rights reserved.