Rpc Context. 模板不好放进去,使用基类 Protocol
(@NotNull Protocol<?> p)
| 650 | * Rpc Context. 模板不好放进去,使用基类 Protocol |
| 651 | */ |
| 652 | public final long addRpcContext(@NotNull Protocol<?> p) { |
| 653 | while (true) { |
| 654 | long sessionId = nextSessionId(); |
| 655 | if (rpcContexts.putIfAbsent(sessionId, p) == null) |
| 656 | return sessionId; |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | void addRpcContext(long sessionId, @NotNull Protocol<?> p) { |
| 661 | rpcContexts.putIfAbsent(sessionId, p); |
no test coverage detected