public class CorfuPayloadMsg<T> extends CorfuMsg
T should be either of a primitive boxed type (Long, Integer, etc) or of ICorfuPayload.
NEVER, EVER use this class as a raw type. This class DEPENDS on the generic captured at runtime by CorfuMsg (via TypeToken).
Created by mwei on 8/1/16.
Constructor and Description |
---|
CorfuPayloadMsg(CorfuMsgType msgType,
T payload) |
Modifier and Type | Method and Description |
---|---|
void |
fromBuffer(io.netty.buffer.ByteBuf buffer)
Parse the rest of the message from the buffer.
|
void |
serialize(io.netty.buffer.ByteBuf buffer)
Serialize the message into the given bytebuffer.
|
copyBaseFields, deserialize, release
public CorfuPayloadMsg(CorfuMsgType msgType, T payload)
public void serialize(io.netty.buffer.ByteBuf buffer)
public void fromBuffer(io.netty.buffer.ByteBuf buffer)
fromBuffer
in class CorfuMsg
buffer
- contains the message from the bufferCopyright © 2019 CorfuDB. All rights reserved.