public class RpcMeta extends Object implements Readable, Writerable, Cloneable
RpcRequestMeta,
RpcResponseMeta| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COMPERESS_GZIP
The Constant COMPERESS_GZIP.
|
static int |
COMPRESS_NO
The Constant COMPRESS_NO.
|
static int |
COMPRESS_SNAPPY
The Constant COMPRESS_SNAPPY.
|
| 构造器和说明 |
|---|
RpcMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcMeta |
copy()
Copy.
|
Integer |
getAttachmentSize()
Gets the 附件大小.
|
byte[] |
getAuthenticationData()
Gets the 用于存放身份认证相关信息.
|
ChunkInfo |
getChunkInfo()
Gets the chunk模式本质上是将一个大的数据流拆分成一个个小的Chunk包按序进行发送。
|
Integer |
getCompressType()
Gets the 0 不压缩 1 使用Snappy 1.
|
Long |
getCorrelationId()
Gets the 请求包中的该域由请求方设置,用于唯一标识一个RPC请求。
|
RpcRequestMeta |
getRequest()
Gets the 请求包元数据.
|
RpcResponseMeta |
getResponse()
Gets the 响应包元数据.
|
void |
read(byte[] bytes)
Do deserializable action.
|
void |
setAttachmentSize(Integer attachmentSize)
Sets the 附件大小.
|
void |
setAuthenticationData(byte[] authenticationData)
Sets the 用于存放身份认证相关信息.
|
void |
setChunkInfo(ChunkInfo chunkInfo)
Sets the chunk模式本质上是将一个大的数据流拆分成一个个小的Chunk包按序进行发送。
|
void |
setCompressType(Integer compressType)
Sets the 0 不压缩 1 使用Snappy 1.
|
void |
setCorrelationId(Long correlationId)
Sets the 请求包中的该域由请求方设置,用于唯一标识一个RPC请求。
|
void |
setRequest(RpcRequestMeta request)
Sets the 请求包元数据.
|
void |
setResponse(RpcResponseMeta response)
Sets the 响应包元数据.
|
byte[] |
write()
Write.
|
public static final int COMPRESS_NO
public static final int COMPRESS_SNAPPY
public static final int COMPERESS_GZIP
public RpcRequestMeta getRequest()
public void setRequest(RpcRequestMeta request)
request - the new 请求包元数据public RpcResponseMeta getResponse()
public void setResponse(RpcResponseMeta response)
response - the new 响应包元数据public Integer getCompressType()
public void setCompressType(Integer compressType)
compressType - the new 0 不压缩 1 使用Snappy 1public Long getCorrelationId()
public void setCorrelationId(Long correlationId)
correlationId - the new 请求包中的该域由请求方设置,用于唯一标识一个RPC请求。public Integer getAttachmentSize()
public void setAttachmentSize(Integer attachmentSize)
attachmentSize - the new 附件大小public byte[] getAuthenticationData()
public void setAuthenticationData(byte[] authenticationData)
authenticationData - the new 用于存放身份认证相关信息public byte[] write()
Writerablewrite 在接口中 Writerablepublic void read(byte[] bytes)
Readablepublic RpcMeta copy()
public ChunkInfo getChunkInfo()
public void setChunkInfo(ChunkInfo chunkInfo)
chunkInfo - the new chunk模式本质上是将一个大的数据流拆分成一个个小的Chunk包按序进行发送。如何拆分还原由通信双方确定Copyright © 2022 Baidu, Inc.. All rights reserved.