| 程序包 | 说明 |
|---|---|
| com.alipay.remoting | |
| com.alipay.remoting.rpc.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
static Protocol |
ProtocolManager.getProtocol(ProtocolCode protocolCode) |
static Protocol |
ProtocolManager.unRegisterProtocol(byte protocolCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ProtocolManager.registerProtocol(Protocol protocol,
byte... protocolCodeBytes) |
static void |
ProtocolManager.registerProtocol(Protocol protocol,
ProtocolCode protocolCode) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RpcProtocol
Request command protocol for v1
0 1 2 4 6 8 10 12 14 16
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|proto| type| cmdcode |ver2 | requestId |codec| timeout | classLen |
+-----------+-----------+-----------+-----------+-----------+-----------+-----------+-----------+
|headerLen | contentLen |
|
class |
RpcProtocolV2
Request command protocol for v2
0 1 2 4 6 8 10 11 12 14 16
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------+-----+-----+-----+-----+
|proto| ver1|type | cmdcode |ver2 | requestId |codec|switch| timeout |
+-----------+-----------+-----------+-----------+-----------+------------+-----------+-----------+
|classLen |headerLen |contentLen |
|
Copyright © 2021. All rights reserved.