public class RpcResponseMeta extends Object implements Readable, Writerable
RpcMeta| 构造器和说明 |
|---|
RpcResponseMeta()
default constrctor.
|
RpcResponseMeta(Integer errorCode,
String errorText)
constructor with errorCode and errorText.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RpcResponseMeta |
copy()
Copy.
|
Integer |
getErrorCode()
Gets the 发生错误时的错误号,0表示正常,非0表示错误。
|
String |
getErrorText()
Gets the 错误的文本描述.
|
void |
read(byte[] bytes)
Do deserializable action.
|
void |
setErrorCode(Integer errorCode)
Sets the 发生错误时的错误号,0表示正常,非0表示错误。
|
void |
setErrorText(String errorText)
Sets the 错误的文本描述.
|
byte[] |
write()
Write.
|
public Integer getErrorCode()
public void setErrorCode(Integer errorCode)
errorCode - the new 发生错误时的错误号,0表示正常,非0表示错误。具体含义由应用方自行定义。public String getErrorText()
public void setErrorText(String errorText)
errorText - the new 错误的文本描述public byte[] write()
Writerablewrite 在接口中 Writerablepublic void read(byte[] bytes)
Readablepublic RpcResponseMeta copy()
Copyright © 2022 Baidu, Inc.. All rights reserved.