public class ProtocolConstants extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
CONFIGURED_CODEC
Configured codec by user, default is SEATA
|
static byte |
CONFIGURED_COMPRESSOR
Configured compressor by user, default is NONE
|
static byte[] |
MAGIC_CODE_BYTES
Magic code
|
static int |
MAX_FRAME_LENGTH
Max frame length
|
static byte |
MSGTYPE_HEARTBEAT_REQUEST
Message type: Heartbeat Request
|
static byte |
MSGTYPE_HEARTBEAT_RESPONSE
Message type: Heartbeat Response
|
static byte |
MSGTYPE_RESPONSE
Message type: Response
|
static byte |
MSGTYPE_RESQUEST
Message type: Request
|
static byte |
MSGTYPE_RESQUEST_ONEWAY
Message type: Request which no need response
|
static int |
V1_HEAD_LENGTH
HEAD_LENGTH of protocol v1
|
static byte |
VERSION
Protocol version
|
| 构造器和说明 |
|---|
ProtocolConstants() |
public static final byte[] MAGIC_CODE_BYTES
public static final byte VERSION
public static final int MAX_FRAME_LENGTH
public static final int V1_HEAD_LENGTH
public static final byte MSGTYPE_RESQUEST
public static final byte MSGTYPE_RESPONSE
public static final byte MSGTYPE_RESQUEST_ONEWAY
public static final byte MSGTYPE_HEARTBEAT_REQUEST
public static final byte MSGTYPE_HEARTBEAT_RESPONSE
public static final byte CONFIGURED_CODEC
CodecType.SEATApublic static final byte CONFIGURED_COMPRESSOR
CompressorType.NONECopyright © 2019 Seata. All rights reserved.