Modifier and Type | Field and Description |
---|---|
static byte |
TYPE |
Constructor and Description |
---|
ContentBody(ByteBuffer payload) |
ContentBody(QpidByteBuffer payload) |
Modifier and Type | Method and Description |
---|---|
static AMQFrame |
createAMQFrame(int channelId,
ContentBody body) |
void |
dispose() |
byte |
getFrameType() |
QpidByteBuffer |
getPayload() |
int |
getSize()
Get the size of the body
|
void |
handle(int channelId,
AMQVersionAwareProtocolSession session) |
static void |
process(MarkableDataInput in,
ChannelMethodProcessor methodProcessor,
long bodySize) |
long |
writePayload(ByteBufferSender sender) |
void |
writePayload(DataOutput buffer) |
public static final byte TYPE
public ContentBody(ByteBuffer payload)
public ContentBody(QpidByteBuffer payload)
public byte getFrameType()
getFrameType
in interface AMQBody
public int getSize()
AMQBody
public void writePayload(DataOutput buffer) throws IOException
writePayload
in interface AMQBody
IOException
public void handle(int channelId, AMQVersionAwareProtocolSession session) throws QpidException
handle
in interface AMQBody
QpidException
public long writePayload(ByteBufferSender sender) throws IOException
writePayload
in interface AMQBody
IOException
public QpidByteBuffer getPayload()
public void dispose()
public static void process(MarkableDataInput in, ChannelMethodProcessor methodProcessor, long bodySize) throws IOException
IOException
public static AMQFrame createAMQFrame(int channelId, ContentBody body)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.