public class JSONPayloadMsg<T> extends CorfuMsg
Constructor and Description |
---|
JSONPayloadMsg(T payload,
CorfuMsgType type) |
Modifier and Type | Method and Description |
---|---|
void |
fromBuffer(io.netty.buffer.ByteBuf buffer)
Parse the rest of the message from the buffer.
|
T |
getPayload()
Get the payload.
|
void |
serialize(io.netty.buffer.ByteBuf buffer)
Serialize the message into the given bytebuffer.
|
copyBaseFields, deserialize, release
public JSONPayloadMsg(T payload, CorfuMsgType type)
public void serialize(io.netty.buffer.ByteBuf buffer)
public void fromBuffer(io.netty.buffer.ByteBuf buffer)
fromBuffer
in class CorfuMsg
buffer
- to parse message frompublic T getPayload()
Copyright © 2019 CorfuDB. All rights reserved.