@Component public class ControllerInvokerHandlerImpl extends Object implements ControllerInvokerHandler
| 限定符和类型 | 字段和说明 |
|---|---|
private ThreadAdapter |
adapter |
private ControllerContext |
controllerContext |
| 构造器和说明 |
|---|
ControllerInvokerHandlerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
private ControllerResp |
doInvoker(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg) |
ControllerResp |
request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg)
同步请求后端服务器,等待消息响应
|
void |
request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg,
java.util.function.BiConsumer<ControllerResp,? super Throwable> action) |
@Autowired private ControllerContext controllerContext
@Autowired(required=false) private ThreadAdapter adapter
public ControllerResp request(ClientNetSession session, ProtocolType type, int msgId, int commandId, byte[] msg) throws Throwable
ControllerInvokerHandlerrequest 在接口中 ControllerInvokerHandlerThrowablepublic void request(ClientNetSession session, ProtocolType type, int msgId, int commandId, byte[] msg, java.util.function.BiConsumer<ControllerResp,? super Throwable> action) throws Throwable
request 在接口中 ControllerInvokerHandlerThrowableprivate ControllerResp doInvoker(ClientNetSession session, ProtocolType type, int msgId, int commandId, byte[] msg)
Copyright © 2021. All rights reserved.