类 Response
- java.lang.Object
-
- net.risedata.rpc.model.Response
-
public class Response extends Object
返回信息
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static Responseas(Msg msg)MsgasMsg()static intgetERROR()longgetId()StringgetMessage()intgetStatus()static intgetSUCCESS()intgetType()voidsetMessage(String message)voidsetStatus(int status)voidsetType(int type)byte[]toBytes()StringtoString()
-
-
-
构造器详细资料
-
Response
public Response(byte[] jsonBytes)
json 的byte 转换为对象- 参数:
jsonBytes-
-
Response
public Response(int status, String message, long id)
-
Response
public Response()
-
-
方法详细资料
-
toBytes
public byte[] toBytes()
-
getType
public int getType()
-
setType
public void setType(int type)
-
getSUCCESS
public static int getSUCCESS()
-
getERROR
public static int getERROR()
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
asMsg
public Msg asMsg()
-
getId
public long getId()
-
-