public final class RPCBlockWriteRequest extends RPCRequest
RPCMessage.Type| Constructor and Description |
|---|
RPCBlockWriteRequest(long sessionId,
long blockId,
long offset,
long length,
DataBuffer data) |
| Modifier and Type | Method and Description |
|---|---|
static RPCBlockWriteRequest |
decode(io.netty.buffer.ByteBuf in)
Decodes the input
ByteBuf into a RPCBlockWriteRequest 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() |
DataBuffer |
getPayloadDataBuffer()
Returns the data buffer of the payload.
|
long |
getSessionId() |
RPCMessage.Type |
getType()
Returns the type of the message.
|
createFrameDecoder, decodeMessage, hasPayload, validatepublic RPCBlockWriteRequest(long sessionId,
long blockId,
long offset,
long length,
DataBuffer data)
public RPCMessage.Type getType()
RPCMessagegetType in class RPCMessagepublic static RPCBlockWriteRequest decode(io.netty.buffer.ByteBuf in)
ByteBuf into a RPCBlockWriteRequest 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 DataBuffer getPayloadDataBuffer()
RPCMessagegetPayloadDataBuffer in class RPCMessagepublic long getSessionId()
public long getBlockId()
public long getLength()
public long getOffset()
Copyright © 2015. All Rights Reserved.