public class RpcHeadMeta extends Object implements Writerable, Readable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SIZE
RPC meta head size.
|
| 构造器和说明 |
|---|
RpcHeadMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcHeadMeta |
copy()
Copy.
|
byte[] |
getMagicCode()
Gets the 协议标识.
|
String |
getMagicCodeAsString()
Gets the magic code as string.
|
int |
getMessageSize()
Gets the message body size include.
|
int |
getMetaSize()
Gets the rPC meta size.
|
void |
read(byte[] bytes)
Do deserializable action.
|
void |
setMagicCode(byte[] magicCode)
Sets the 协议标识.
|
void |
setMagicCode(String magicCode)
Sets the 协议标识.
|
void |
setMessageSize(int messageSize)
Sets the message body size include.
|
void |
setMetaSize(int metaSize)
Sets the rPC meta size.
|
byte[] |
write()
Write.
|
public static final int SIZE
public byte[] getMagicCode()
public String getMagicCodeAsString()
public void setMagicCode(String magicCode)
magicCode - the new 协议标识public void setMagicCode(byte[] magicCode)
magicCode - the new 协议标识public int getMessageSize()
public void setMessageSize(int messageSize)
messageSize - the new message body size includepublic int getMetaSize()
public void setMetaSize(int metaSize)
metaSize - the new rPC meta sizepublic byte[] write()
Writerablewrite 在接口中 Writerablepublic void read(byte[] bytes)
Readablepublic RpcHeadMeta copy()
Copyright © 2022 Baidu, Inc.. All rights reserved.