public class RpcOk extends ProtoStruct
| Modifier and Type | Field and Description |
|---|---|
static byte |
HEADER |
byte[] |
payload |
int |
responseType |
| Constructor and Description |
|---|
RpcOk(java.io.InputStream stream) |
RpcOk(int responseType,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
protected byte |
getHeader() |
int |
getLength() |
byte[] |
getPayload() |
int |
getResponseType() |
protected void |
readBody(java.io.InputStream bs) |
java.lang.String |
toString() |
protected void |
writeBody(java.io.OutputStream bs) |
readObject, writeObjecttoByteArraypublic static final byte HEADER
public int responseType
public byte[] payload
public RpcOk(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic RpcOk(int responseType,
byte[] payload)
public int getResponseType()
public byte[] getPayload()
public int getLength()
getLength in class ProtoObjectprotected byte getHeader()
getHeader in class ProtoStructprotected void writeBody(java.io.OutputStream bs)
throws java.io.IOException
writeBody in class ProtoStructjava.io.IOExceptionprotected void readBody(java.io.InputStream bs)
throws java.io.IOException
readBody in class ProtoStructjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object