public class AMQFrame extends AMQDataBlock implements EncodableAMQDataBlock
Modifier and Type | Field and Description |
---|---|
static byte |
FRAME_END_BYTE |
Constructor and Description |
---|
AMQFrame(int channel,
AMQBody bodyFrame) |
Modifier and Type | Method and Description |
---|---|
AMQBody |
getBodyFrame() |
int |
getChannel() |
static int |
getFrameOverhead() |
long |
getSize()
Get the size of buffer needed to store the byte representation of this
frame.
|
String |
toString() |
static void |
writeFrame(DataOutput buffer,
int channel,
AMQBody body) |
static void |
writeFrames(DataOutput buffer,
int channel,
AMQBody body1,
AMQBody body2) |
static void |
writeFrames(DataOutput buffer,
int channel,
AMQBody body1,
AMQBody body2,
AMQBody body3) |
long |
writePayload(ByteBufferSender sender) |
void |
writePayload(DataOutput buffer)
Writes the datablock to the specified buffer.
|
public static final byte FRAME_END_BYTE
public AMQFrame(int channel, AMQBody bodyFrame)
public long getSize()
AMQDataBlock
getSize
in class AMQDataBlock
public static final int getFrameOverhead()
public void writePayload(DataOutput buffer) throws IOException
AMQDataBlock
writePayload
in class AMQDataBlock
buffer
- the buffer to write toIOException
- if there is a problem writing the outputpublic long writePayload(ByteBufferSender sender) throws IOException
writePayload
in class AMQDataBlock
IOException
public final int getChannel()
public final AMQBody getBodyFrame()
public static void writeFrame(DataOutput buffer, int channel, AMQBody body) throws IOException
IOException
public static void writeFrames(DataOutput buffer, int channel, AMQBody body1, AMQBody body2) throws IOException
IOException
public static void writeFrames(DataOutput buffer, int channel, AMQBody body1, AMQBody body2, AMQBody body3) throws IOException
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.