public final class RPCErrorResponse extends RPCResponse
RPCResponse.StatusRPCMessage.Type| Constructor and Description |
|---|
RPCErrorResponse(RPCResponse.Status status) |
| Modifier and Type | Method and Description |
|---|---|
static RPCErrorResponse |
decode(io.netty.buffer.ByteBuf in)
Decodes the input
ByteBuf into a RPCErrorResponse object and returns it. |
void |
encode(io.netty.buffer.ByteBuf out)
Encodes the message to the output
ByteBuf. |
int |
getEncodedLength()
Returns the number bytes for the message when it is encoded.
|
RPCResponse.Status |
getStatus() |
RPCMessage.Type |
getType()
Returns the type of the message.
|
String |
toString() |
createFrameDecoder, decodeMessage, getPayloadDataBuffer, hasPayload, validatepublic RPCErrorResponse(RPCResponse.Status status)
public static RPCErrorResponse decode(io.netty.buffer.ByteBuf in)
ByteBuf into a RPCErrorResponse object and returns it.in - The input ByteBuf.public void encode(io.netty.buffer.ByteBuf out)
EncodedMessageByteBuf.out - the output ByteBuf where the message should be encoded.public int getEncodedLength()
EncodedMessagepublic RPCResponse.Status getStatus()
public RPCMessage.Type getType()
RPCMessagegetType in class RPCMessageCopyright © 2015. All Rights Reserved.