public final class RPCBlockReadRequest extends RPCRequest
RPCMessage.Type| Constructor and Description |
|---|
RPCBlockReadRequest(long blockId,
long offset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
static RPCBlockReadRequest |
decode(io.netty.buffer.ByteBuf in)
Decodes the input
ByteBuf into a RPCBlockReadRequest object and returns it. |
void |
encode(io.netty.buffer.ByteBuf out)
Encodes the message to the output
ByteBuf. |
long |
getBlockId() |
int |
getEncodedLength()
Returns the number bytes for the message when it is encoded.
|
long |
getLength() |
long |
getOffset() |
RPCMessage.Type |
getType()
Returns the type of the message.
|
String |
toString() |
void |
validate()
Validate the message.
|
createFrameDecoder, decodeMessage, getPayloadDataBuffer, hasPayloadpublic RPCBlockReadRequest(long blockId,
long offset,
long length)
public RPCMessage.Type getType()
RPCMessagegetType in class RPCMessagepublic static RPCBlockReadRequest decode(io.netty.buffer.ByteBuf in)
ByteBuf into a RPCBlockReadRequest object and returns it.in - the input ByteBufpublic int getEncodedLength()
EncodedMessagepublic void encode(io.netty.buffer.ByteBuf out)
EncodedMessageByteBuf.out - the output ByteBuf where the message should be encoded.public void validate()
RPCMessagevalidate in class RPCMessagepublic long getBlockId()
public long getLength()
public long getOffset()
Copyright © 2015. All Rights Reserved.