mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-20 03:26:57 +00:00
doc[net]: 更新文档
This commit is contained in:
@@ -94,7 +94,7 @@ public class Consumer implements IConsumer {
|
||||
loadBalancer.afterLoadBalancer(session, packet, clientSignalAttachment);
|
||||
return syncAnswer;
|
||||
} catch (TimeoutException e) {
|
||||
throw new NetTimeOutException(StringUtils.format("syncRequest timeout exception, ask:[{}], attachment:[{}]"
|
||||
throw new NetTimeOutException(StringUtils.format("syncAsk timeout exception, ask:[{}], attachment:[{}]"
|
||||
, JsonUtils.object2String(packet), JsonUtils.object2String(clientSignalAttachment)));
|
||||
} finally {
|
||||
SignalBridge.removeSignalAttachment(clientSignalAttachment);
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface IRouter {
|
||||
void atReceiver(Session session, IPacket packet, @Nullable IAttachment attachment);
|
||||
|
||||
/**
|
||||
* attention:syncRequest和asyncRequest只能客户端调用
|
||||
* attention:syncAsk和asyncAsk只能客户端调用
|
||||
* 同一个客户端可以同时发送多条同步或者异步消息。
|
||||
* 服务器对每个请求消息也只能回复一条消息,不能在处理一条不同或者异步消息的时候回复多条消息。
|
||||
*
|
||||
|
||||
@@ -199,7 +199,7 @@ public class Router implements IRouter {
|
||||
|
||||
return new SyncAnswer<>((T) responsePacket, clientSignalAttachment);
|
||||
} catch (TimeoutException e) {
|
||||
throw new NetTimeOutException(StringUtils.format("syncRequest timeout exception, ask:[{}], attachment:[{}]"
|
||||
throw new NetTimeOutException(StringUtils.format("syncAsk timeout exception, ask:[{}], attachment:[{}]"
|
||||
, JsonUtils.object2String(packet), JsonUtils.object2String(clientSignalAttachment)));
|
||||
} finally {
|
||||
SignalBridge.removeSignalAttachment(clientSignalAttachment);
|
||||
|
||||
Reference in New Issue
Block a user