Package alluxio.network.protocol
Interface EncodedMessage
-
- All Known Implementing Classes:
RPCMessage
,RPCMessage.Type
,RPCProtoMessage
public interface EncodedMessage
Represents an encoded message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
encode(io.netty.buffer.ByteBuf out)
Encodes the message to the outputByteBuf
.int
getEncodedLength()
Returns the number bytes for the message when it is encoded.
-
-
-
Method Detail
-
getEncodedLength
int getEncodedLength()
Returns the number bytes for the message when it is encoded.- Returns:
- the length of the encoded message, in bytes
-
encode
void encode(io.netty.buffer.ByteBuf out)
Encodes the message to the outputByteBuf
.- Parameters:
out
- the output ByteBuf where the message should be encoded
-
-